[Issue 13041] New: A problem in std.range.transposed

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jul 4 07:13:02 PDT 2014


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: nobody at puremagic.com
          Reporter: bearophile_hugs at eml.cc

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]]]

--


More information about the Digitalmars-d-bugs mailing list