Kotlin HashSet add()
Syntax & Examples


Syntax of HashSet.add()

The syntax of HashSet.add() function is:

fun add(element: E): Boolean

This add() function of HashSet adds the specified element to the set.