[Issue 4579] std.typecons.Tuple syntax unpacking sugar

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 29 14:10:45 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=4579



--- Comment #3 from bearophile_hugs at eml.cc 2012-02-29 14:10:39 PST ---
This syntax can't be used, it's part of the new lambda syntax:

auto tups = [tuple(1,2), tuple(3,4)];
auto r = map!((x,y) => x * y)(tups);


A possible solution:

auto tups = [tuple(1,2), tuple(3,4)];
auto r = map!(tuple(x,y) => x * y)(tups);

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list