Remove instance from array

Andrea Fontana via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 5 08:40:57 PDT 2017


On Wednesday, 5 July 2017 at 15:30:08 UTC, Jolly James wrote:
>> WhatEver[] q = [];
>>
>> [...]
>>
>> auto i = new WhatEver();
>> q[] = i;
>>
>
> How does one remove that instance 'i'?

Maybe: http://dlang.org/phobos/std_algorithm_mutation.html#.remove

?


More information about the Digitalmars-d-learn mailing list