remove

Common
1.0
fun remove(element: E): Boolean
(source)
JS
1.1
open fun remove(element: E): Boolean
(source)

Removes a single instance of the specified element from this collection, if it is present.

Return true if the element has been successfully removed; false if it was not present in the collection.