find

Common
JVM
JS
Native
1.0
inline fun <T> Sequence<T>.find(
    predicate: (T) -> Boolean
): T?

Returns the first element matching the given predicate, or null if no such element was found.

The operation is terminal.