Skip to content

bindTo

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

Defined in: Core/Maybe.ts:271

Converts a Maybe value into an object containing a single property. Initiates the pipeline accumulator record.

K extends string

K

<A>(data) => Maybe<{ [P in string]: A }>

pipe(Maybe.make.some(42), Maybe.bindTo("value")); // Some({ value: 42 })