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



--- Comment #1 from bearophile_h...@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: -------

Reply via email to