Do you have a better way to remove element from a array?

FrankLike via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Feb 5 06:28:59 PST 2015


On Thursday, 5 February 2015 at 14:09:10 UTC, bearophile wrote:
> Tobias Pankrath:
>
>> Works as designed: 
>> http://dlang.org/phobos/std_algorithm.html#.remove
>
> Unfortunately it's one of the worst designed functions of 
> Phobos:
> https://issues.dlang.org/show_bug.cgi?id=10959
>
> Bye,
> bearophile

Yes,A.remove(item) or A.removeAt(index)
They is better than now.


More information about the Digitalmars-d-learn mailing list