arrow-fx-coroutines / arrow.fx.coroutines.stream / Chunk / lastOrNull

lastOrNull

fun lastOrNull(): O?

Gets the last element of this chunk.

inline fun lastOrNull(p: (O) -> Boolean): O?

Returns the last element for which the predicate returns true or null if no elements satisfy the predicate.

Do you like Arrow?

Arrow Org
<