Remove instance from array

Jolly James via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 6 06:37:56 PDT 2017


On Thursday, 6 July 2017 at 08:15:10 UTC, Andrea Fontana wrote:
> On Wednesday, 5 July 2017 at 16:17:29 UTC, Jolly James wrote:
>> On Wednesday, 5 July 2017 at 16:04:16 UTC, Jolly James wrote:
>>> [...]
>>
>>
>>
>> Part of CoreCLR's 'List<T>':
>>
>>> [...]
>>
>>
>> If there isn't already, maybe something similar to this should 
>> get part of Phobos. I think this could be really useful.
>
> q = q.remove(1); // Remove element with index 1
> q = q.remove(x => x == instance); // Remove all items that 
> match instance

thx


More information about the Digitalmars-d-learn mailing list