arrow-fx-coroutines / arrow.fx.coroutines.stream / unconsNonEmptyOrNull

unconsNonEmptyOrNull

fun <O> Pull<O, Unit>.unconsNonEmptyOrNull(): Pull<Nothing, PullUncons<O>?>

Like unconsOrNull but skips over empty chunks, pulling until it can emit the first non-empty chunk.

Do you like Arrow?

Arrow Org
<