Kotlin HashSet isNotEmpty()
Syntax & Examples


Syntax of HashSet.isNotEmpty()

The syntax of HashSet.isNotEmpty() extension function is:

fun <T> Collection<T>.isNotEmpty(): Boolean

This isNotEmpty() extension function of HashSet returns true if the collection is not empty.