contiguous ranges

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri Feb 20 11:54:20 PST 2015


On 2/20/15 11:09 AM, deadalnix wrote:
> On Friday, 20 February 2015 at 12:23:49 UTC, Vlad Levenfeld wrote:
>> Yes. A slice is the simplest realization of a contiguous range. I
>> argue that it is useful to have structures which have slice-like
>> behavior without actually being slices.
>>
>
> I'm still not sure what more complex continuous range exists, and if it
> is worth the complexity of adding them to the language.

Reference counted slices would be the only one coming to mind.

There are several other ranges with contiguous _support_: retro, 
randomCover, map (over ranges with that property), and probably more.


Andrei



More information about the Digitalmars-d mailing list