Kotlin HashSet none()
Syntax & Examples


Syntax of HashSet.none()

There are 2 variations for the syntax of HashSet.none() extension function. They are:

1.
fun <T> Iterable<T>.none(): Boolean

This extension function returns true if the collection has no elements.

2.
fun <T> Iterable<T>.none(predicate: (T) -> Boolean): Boolean

This extension function returns true if no elements match the given predicate.