www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17741] New: std.range.transposed does not work with Map

https://issues.dlang.org/show_bug.cgi?id=17741

          Issue ID: 17741
           Summary: std.range.transposed does not work with Map
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: dlang-bugzilla thecybershadow.net

auto ror = 5.iota.map!(y => 5.iota.map!(x => x * y));
auto result = ror.transposed;

Error: template std.range.transposed cannot deduce function from argument types
!()(MapResult!(__lambda1, Result)), candidates are:

--
Aug 10