remove method
- T item
Removes an item from the list.
This is O(N) in the number of items in the list.
Returns whether the item was present in the list.
Implementation
bool remove(T item) {
_isDirty = true;
_set.clear(); // Clear the set so that we don't leak items.
return _list.remove(item);
}