kmath-coroutines
/
space.kscience.kmath.chains
/
collectWithState
common
collect
With
State
fun <
T
,
S
,
R
>
Chain
<
T
>.
collectWithState
(state:
S
, stateFork: (
S
) ->
S
, mapper: suspend
S
.(
Chain
<
T
>) ->
R
):
Chain
<
R
>
Content copied to clipboard