remove

abstract fun remove(element: T): Boolean(source)

Removes one element equal to element, if one exists.

For lists, removes the first matching element. An absent element leaves the collection unchanged.

Return

true if an element was removed.

Parameters

element

value to remove.