remove

open override fun remove(element: T): Boolean(source)

Removes the first element equal to element.

Uses the same equality as indexOf. Removing a match shifts following elements to the left and invalidates existing iterators. An absent element leaves the list unchanged.

Return

true if an element was removed, or false when no equal element exists.

Parameters

element

value to search for and remove.