Skip to content

bindTo

bindTo<K>(key): <S, A>(data) => State<S, { [P in string]: A }>

Defined in: Core/State.ts:226

Lifts a State value into an accumulator object.

K extends string

K

<S, A>(data) => State<S, { [P in string]: A }>

pipe(State.resolve(42), State.bindTo("value")); // State({ value: 42 })