D idom for removing array elements
Dukc via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jan 27 03:56:02 PST 2017
On Friday, 27 January 2017 at 10:20:19 UTC, albert-j wrote:
> I am also wondering why the standard library doesn't have
> convenience functions for this, e.g. like Java's removeAll? Now
> there's more typing than necessary for a relatively common task.
That might be a good addition considering how well it can be
optimized compared to a naive implementation. Of course, D
version of that would accept ranges as input, not only
collections.
More information about the Digitalmars-d-learn
mailing list