firstIndex

fun <T> Collection<T>.firstIndex(predicate: (T) -> Boolean): Int?