Freer
Toggle table of contents
0.5.0-SNAPSHOT
common
Target filter
common
Switch theme
Search in API
Skip to content
Freer
freer
/
com.benjaminearley.freer.effects
/
modifyState
modify
State
fun
<
S
>
modifyState
(
f
:
(
S
)
->
S
)
:
Program
<
Unit
>
(
source
)
Replace the current state with
f
applied to it: a
getState
followed by a
putState
.