Skip to content

resolve

resolve<S, A>(value): State<S, A>

Defined in: Core/State.ts:36

Lifts a pure value into a State computation. The state passes through unchanged.

S

A

A

State<S, A>

State.run(10)(State.resolve(42)); // [42, 10] — value 42, state unchanged