Skip to content

put

put<S>(newState): State<S, undefined>

Defined in: Core/State.ts:71

Replaces the current state with a new value. Produces no meaningful value.

S

S

State<S, undefined>

const reset: State<number, undefined> = State.put(0);
State.run(99)(reset); // [undefined, 0]