import std.range;
import std.stdio : writeln;
void main( ) {
ulong[1] t0;
auto t1 = t0[].chunks(1).transposed;
writeln(t1);
}
The above code spews out a never-ending string of [0]s.
Add a very simple .array before .transposed, and things work perfectly.
Comment #1 by hsteoh — 2013-02-12T17:12:04Z
https://github.com/D-Programming-Language/phobos/pull/1138
Note that calling .array will be made mandatory, because Chunks does not have assignable subranges, so there's no way transpose can possibly work for it (popping of subranges does not have lasting effect on the parent container).
Comment #2 by github-bugzilla — 2014-07-17T15:23:34Z