find

inline fun <T> Iterable<T>.find(predicate: (T) -> Boolean): T?(source)

Returns the first matching element, or null when no element matches predicate.