www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17742] New: std.range.transposed does not have opIndex

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

          Issue ID: 17742
           Summary: std.range.transposed does not have opIndex
           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).array).array;
assert(ror[3][2] == 6); // OK
auto result = ror.transposed;
assert(result[3][2] == 6); // Error

--
Aug 10 2017