nextWhere

fun <T> Iterator<T>.nextWhere(predicate: (T) -> Boolean): T