any

inline fun <T> Iterable<T>.any(noinline predicate: (T) -> Boolean): Boolean(source)

Returns true if any element in this satisfies the predicate.

Stream equivalent: Stream.anyMatch.

See also


inline fun <T> Iterator<T>.any(noinline predicate: (T) -> Boolean): Boolean(source)

Returns true if one or more elements returned by this satisfy the given predicate.

See also