//arrow-core/arrow.core/lastOrNone
common fun <T> Iterable<T>.lastOrNone(): Option<T>
Returns the last element as Some(element), or None if the iterable is empty.
common inline fun <T> Iterable<T>.lastOrNone(predicate: (T) -> Boolean): Option<T>
Returns the last element as Some(element) matching the given predicate, or None if no such element was found.
Do you like Arrow?
✖