https://issues.dlang.org/show_bug.cgi?id=13041
Issue ID: 13041
Summary: A problem in std.range.transposed
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: normal
Priority: P1
Component: Phobos
Assignee: [email protected]
Reporter: [email protected]
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 dmd 2.066beta:
[[[1, 2]], [[3, 4]]]
[[[]], [[]]]
I expected:
[[[1, 2]], [[3, 4]]]
[[[1, 2]], [[3, 4]]]
--