remove

Removes an element from an array.

alias remove = array_remove

Return Value

true if something has been removed, false otherwise

Examples

auto arr = [0, 1, 2, 3];
assert(array_remove(2, [0, 1, 2, 3]) && arr = [0, 1, 3]);

string s = "test";
assert(s.remove('t') && s == "es");

Meta