ddash.algorithm.remove

Removes elements from a range

Members

Functions

remove
void remove(ref Range range)

Modified the range by removing elements by predicate

Examples

auto arr = [1, 2, 3, 4];
arr.remove!(a => a % 2 == 0);
assert(arr.equal([1, 3]));

Meta