Kotlin HashSet remove()
Syntax & Examples


Syntax of HashSet.remove()

The syntax of HashSet.remove() function is:

fun remove(element: E): Boolean

This remove() function of HashSet removes a single instance of the specified element from this collection, if it is present.