Formal Review of std.range.ndslice

Ilya Yaroshenko via Digitalmars-d digitalmars-d at puremagic.com
Tue Nov 17 10:38:11 PST 2015


On Tuesday, 17 November 2015 at 10:16:56 UTC, Nordlöw wrote:
> On Tuesday, 17 November 2015 at 10:13:57 UTC, Nordlöw wrote:
>> Why can't byElement
>>
>> http://dtest.thecybershadow.net/artifact/website-7a646fdea76569e009844cdee5c93edab10980ca-2b25fcf8789289fb52e50e2e71914d1a/web/phobos-prerelease/std_experimental_range_ndslice.html#.byElement
>>
>> provide RandomAccess? It's documented to return an InputRange.
>
> AFAIK, if all the slice dimensions are know at compile-time it 
> should. This is kind of similar to how std.range.chain() works.

Thanks! Implemented: 
http://dtest.thecybershadow.net/artifact/website-7a646fdea76569e009844cdee5c93edab10980ca-4f243752aee5ecc098ce1c36eedd86a2/web/phobos-prerelease/std_experimental_range_ndslice.html#byElement

--Ilya


More information about the Digitalmars-d mailing list