Kotlin HashSet isEmpty()
Syntax & Examples


Syntax of HashSet.isEmpty()

The syntax of HashSet.isEmpty() function is:

fun isEmpty(): Boolean

This isEmpty() function of HashSet returns true if the collection is empty (contains no elements), false otherwise.