std.experimental.collection.functional.slist

ZombineDev via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 18 18:26:10 PDT 2015


On Friday, 19 June 2015 at 01:07:10 UTC, ZombineDev wrote:
> On Thursday, 18 June 2015 at 23:32:03 UTC, Andrei Alexandrescu 
> wrote:
> [..]

I also noticed that the `front` primitive returns only `const 
ref` (instead of `inout ref`). Is this because the user should 
regard the SList as immutable - i.e. if you want to change an 
element, you have to make the modification in a copy of the list, 
instead of doing it inplace?




More information about the Digitalmars-d mailing list