find

inline fun CharSequence.find(predicate: (Char) -> Boolean): Char?(source)

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

Since Kotlin

1.0

Samples