Flatten range of ranges

new to d a at a.com
Thu May 6 05:47:53 PDT 2010


Is there any function in phobos that does something like that:

auto a = [[1,2],[3,4]];
assert(equals(flatten(a), [1,2,3,4]));

I am just learning D and ca't find anything like that in the docs.


More information about the Digitalmars-d-learn mailing list