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