September 26, 2020 Re: Do we have a simple find/remove algorithm? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On Saturday, 26 September 2020 at 02:29:57 UTC, Andrei Alexandrescu wrote: > "Find it and kill it" seems rather tedious to do. Yes, this is indeed the only non-trivial operation in this area: https://p0nce.github.io/d-idioms/#Adding-or-removing-an-element-from-arrays |
September 26, 2020 Re: Do we have a simple find/remove algorithm? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Guillaume Piolat | On Saturday, 26 September 2020 at 17:41:13 UTC, Guillaume Piolat wrote:
> On Saturday, 26 September 2020 at 02:29:57 UTC, Andrei Alexandrescu wrote:
>> "Find it and kill it" seems rather tedious to do.
>
> Yes, this is indeed the only non-trivial operation in this area:
> https://p0nce.github.io/d-idioms/#Adding-or-removing-an-element-from-arrays
removeOne(), removeOneElement()
|
Copyright © 1999-2021 by the D Language Foundation