Issue 1323

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Jan 9 12:21:12 PST 2011


On 1/9/11 1:30 PM, Andrej Mitrovic wrote:
> While you're at it I would really like to have a remove method in
> std.algorithm that can take an ElementType of a range as a predicate:
>
> See my older topic:
> http://www.digitalmars.com/d/archives/digitalmars/D/learn/Removing_an_object_from_a_range_23212.html
>
> An example would look like:
> Object a, b, c;
> Object[] arr = [a, b, c];
> remove(arr, b)
> // arr == [a, c];
>
> Or should I just file this in bugzilla as a feature request?

An algorithm can't change the topology of the range it works on.

Andrei


More information about the Digitalmars-d mailing list