Kotlin Set none()
Syntax & Examples
Syntax of Set.none()
There are 2 variations for the syntax of Set.none() extension function. They are:
1.
fun <T> Iterable<T>.none(): BooleanThis extension function returns true if the collection has no elements.
2.
fun <T> Iterable<T>.none(predicate: (T) -> Boolean): BooleanThis extension function returns true if no elements match the given predicate.