| commit | 95d3db956519400f29134dcee35fbcfc5bb93ada | [log] [tgz] |
|---|---|---|
| author | Kwang Yul Seo <kwangyul.seo@gmail.com> | Thu Sep 24 01:59:52 2015 |
| committer | Kwang Yul Seo <kwangyul.seo@gmail.com> | Thu Sep 24 02:09:03 2015 |
| tree | 3f7b99587106d1575068f4aa62e43dbc0345b2e8 | |
| parent | 6aa35e5b8ba95a639def30310deadc88efa382d3 [diff] |
Add fromList factory constructor.
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.