Skip to content

Combinable

Combinable<A> = object

Defined in: Core/Combinable.ts:14

A type that can combine two values of type A into one, with a neutral starting value. empty is the identity: combine(empty)(a) === a and combine(a)(empty) === a. combine(next)(accumulated) appends next onto accumulated.

pipe(["hello", ", ", "world"], Combinable.combineAll(Combinable.string)); // "hello, world"
pipe([1, 2, 3, 4, 5], Combinable.combineAll(Combinable.sum));            // 15

A

readonly combine: (next) => (accumulated) => A

Defined in: Core/Combinable.ts:14

A

(accumulated) => A


readonly empty: A

Defined in: Core/Combinable.ts:14