findLast
Returns the last element matching the given predicate, or null if no such element was found.
inline fun <T> Sequence<T>.findLast(predicate: (T) -> Boolean): T?(source)
fun main() {
val numbers = (1..10).asSequence()
val lastOdd = numbers.findLast { it % 2 != 0 }
println(lastOdd) // prints 9
}