| Parameter | Description |
|---|---|
| list | The list to search. |
| value | The value to locate and remove. |
bool Returns true if an element was removed.
Finds and removes the first occurrence of a particular value in the list.
If found, the first occurrence of the value is overwritten by the last element of the list, and the list's length is decremented by one.
| Parameter | Description |
|---|---|
| list | The list to search. |
| matcher | The predicate for testing the elements of the list. |
bool Returns true if an element was removed.
Finds and removes the first value which satisfies a predicate.
The first value satisfying the predicate is overwritten by the last element of the list, and the list's length is decremented by one.