Kotlin HashSet all()
Syntax & Examples
Syntax of HashSet.all()
The syntax of HashSet.all() extension function is:
fun <T> Iterable<T>.all(predicate: (T) -> Boolean): Boolean
This all() extension function of HashSet returns true if all elements match the given predicate.