Removing elements from dynamic array
cym13 via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Aug 9 06:40:49 PDT 2015
On Sunday, 9 August 2015 at 13:22:02 UTC, Reflexive wrote:
> Hi
>
> I have seen that it is possible to remove an element from a
> associative array, but dont find any reference, including in
> D's specification, about any element removing in dynamic array.
> I can use loops for that, but isnt any way to simple reduce a
> dynamic array size ?
>
> Thank you
You can use std.algorithm.remove for that. If you need more
advanced ways to remove elements, you may want to switch from a
regular dynamic array to a std.container.array.
More information about the Digitalmars-d-learn
mailing list