[Issue 4591] Concat of std.typecons.Tuples

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 25 05:30:17 PDT 2011


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



--- Comment #1 from bearophile_hugs at eml.cc 2011-07-25 05:30:07 PDT ---
Slicing too is sometimes useful:

import std.typecons;
void main() {
    auto t1 = tuple(10, 20, 30, 40, 50);
    auto t2 = tuple(100, 200, 300);
    auto t3 = t1[0 .. 2]; // tuple slicing
    auto t4 = t1 ~ t2;    // tuple concat
}

-- 
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