SList: How do I use linearRemove?

sigod via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 28 10:53:15 PDT 2014


On Thursday, 26 June 2014 at 16:50:38 UTC, Lemonfiend wrote:
> This doesn't (why?):
> auto s = SList!int(1, 2, 3, 4, 5);
> auto s2 = SList!int(1, 2, 3, 4, 5);
> auto r = s2[];
> popFrontN(r, 1);
> auto r1 = s.linearRemove(r);

This is intended behavior: 
https://issues.dlang.org/show_bug.cgi?id=12999


More information about the Digitalmars-d-learn mailing list