Clone this repo:

Branches

Tags

  1. a9ef1cd Use quiver directly, and update README.google. This is so that by Janice Collins · 5 months ago master v1.0.1
  2. 311778b Initialize dart-lang/tuple with the tuple package at v1.0.1. by Janice Collins · 5 months ago
  3. 25609b3 first commit by Janice Collins · 5 months ago

Tuple data structure

  • [Tuple2], [Tuple3]...

Build Status Coverage Status

Usage example

const t = const Tuple2<String, int>('a', 10);

print(t.item1); // prints 'a'
print(t.item2); // prints '10'
final t1 = const Tuple2<String, int>('a', 10);
final t2 = t1.withItem1('c');
// t2 is a new [Tuple2] object with item1 is 'c' and item2 is 10.