any

fun any(): Boolean

Returns true if this set has at least one element.


inline fun any(predicate: (element: E) -> Boolean): Boolean

Returns true if at least one element matches the given predicate.

Parameters

predicate

called for elements in the set to determine if it returns true for any elements.