digitalmars.D.bugs - [Issue 13041] New: A problem in std.range.transposed
- via Digitalmars-d-bugs (26/26) Jul 04 2014 https://issues.dlang.org/show_bug.cgi?id=13041
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 puremagic.com Reporter: bearophile_hugs 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]]] --
Jul 04 2014