Code:
------
void main() {
import std.stdio;
import std.range;
auto data = [ [1,2,3], [4,5,6], [7,8,9] ];
writeln(data.transposed());
writeln(data);
}
------
Output:
------
[[1, 4, 7], [2, 5, 8], [3, 6, 9]]
[[], [], []]
------
This limits the usefulness of transposed(), since a copy of the original range of ranges must be made if it needs to be used again in its original form after iterating over its transposed() wrapper.
Comment #1 by peter.alexander.au — 2015-01-02T21:40:17Z
*** This issue has been marked as a duplicate of issue 13041 ***