arrow-fx-coroutines / arrow.fx.coroutines.stream / Pull / loop
fun <O, R> loop(r: R, using: (R) -> Pull<O, R?>): Pull<O, R?>
Repeatedly uses the output of the pull as input for the next step of the pull.
Halts when a step terminates with null or Pull.raiseError.
Do you like Arrow?
✖