arrow-fx-coroutines / arrow.fx.coroutines.stream / unconsN
fun <O>
Pull
<O,
Unit
>.unconsN(n:
Int
, allowFewer:
Boolean
= false):
Pull
<
Nothing
,
PullUncons
<O>?>
Like uncons, but returns a chunk of exactly n
elements, splitting chunk as necessary.
if allowFewer
is true
then Pull.just
is returned if the end of the source stream is reached.
Do you like Arrow?
✖