Wait, what? What is AliasSeq?

Dmitry Olshansky via Digitalmars-d digitalmars-d at puremagic.com
Mon Jul 13 16:45:53 PDT 2015


On 14-Jul-2015 02:38, Tofu Ninja wrote:
> On Monday, 13 July 2015 at 23:01:35 UTC, Dmitry Olshansky wrote:
>> Popular != the right thing.
>> List in CS at large is generally speaking not indexable nor defines
>> such operations. So there may be a lot of people who don't care for
>> what a list is, but that doesn't make list a synonym for sequence.
>
> Who decreed lists can not be indexable, seriously this seems really odd
> to me.

Come on...

https://en.wikipedia.org/wiki/List_%28abstract_data_type%29

Implementation of the list data structure may provide some of the 
following operations:

     a constructor for creating an empty list;
     an operation for testing whether or not a list is empty;
     an operation for prepending an entity to a list
     an operation for appending an entity to a list
     an operation for determining the first component (or the "head") of 
a list
     an operation for referring to the list consisting of all the 
components of a list except for its first (this is called the "tail" of 
the list.)

That's all. No indexing folks.

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list