| commit | 8ad627f3f1987c5cd86c9153d9f36e6e2686819a | [log] [tgz] |
|---|---|---|
| author | Kwang Yul Seo <kwangyul.seo@gmail.com> | Wed Sep 23 01:31:50 2015 |
| committer | Kwang Yul Seo <kwangyul.seo@gmail.com> | Wed Sep 23 01:31:50 2015 |
| tree | adb610ea96535296f6b8fd4e53e0041de601c437 | |
| parent | 2eded42fdfc2dda371722d5bf817106fb9e96fe6 [diff] |
Add toList() to tuple classes.
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.