kmath
0.3.1-dev-RC
common
kmath-coroutines
/
space.kscience.kmath.chains
/
combineWithState
combine
With
State
@
UnstableKMathAPI
fun
<
T
,
S
,
R
>
Chain
<
T
>
.
combineWithState
(
state
:
S
,
stateFork
:
(
S
)
->
S
,
mapper
:
suspend
S
.
(
Chain
<
T
>
)
->
R
)
:
Chain
<
R
>
(
source
)