remove

open override fun remove(element: T): Boolean

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

Return

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

Throws

if an element doesn't present in the map.