Split by length?

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Aug 14 19:49:59 PDT 2011


Is there something in Phobos with which I could do:

auto arr = [1, 2, 3, 4, 5, 6];

int[][] newarr = arr.splitLength(2);
assert(newarr.length == 3);

?


More information about the Digitalmars-d-learn mailing list