@mikuroxina/mini-fn
Preparing search index...
State
withState
Function withState
withState
<
S
>
(
fn
:
(
state
:
S
)
=>
S
,
)
:
<
A
>
(
s
:
State
.
State
<
S
,
A
>
)
=>
State
.
State
<
S
,
A
>
Modifies the state of the computation
s
with
fn
.
Type Parameters
S
Parameters
fn
:
(
state
:
S
)
=>
S
The state modifier.
Returns
<
A
>
(
s
:
State
.
State
<
S
,
A
>
)
=>
State
.
State
<
S
,
A
>
The modified computation.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@mikuroxina/mini-fn
Loading...
Modifies the state of the computation
swithfn.