transposed problem

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 4 01:32:43 PDT 2014


Is this another bug in std.range.transposed?


void main() {
     import std.stdio, std.algorithm, std.range;
     auto M = [[[1, 2]], [[3, 4]]];
     M.filter!(r => r.dup.transposed.walkLength).writeln;
     M.filter!(r => r.transposed.walkLength).writeln;
}


Output with the latest dmd:

[[[1, 2]], [[3, 4]]]
[[[]], [[]]]


Bye,
bearophile


More information about the Digitalmars-d-learn mailing list