Skip to content

curry3

curry3<A, B, C, D>(f): (a) => (b) => (c) => D

Defined in: Composition/curry.ts:32

Converts a 3-argument function into a curried function.

A

B

C

D

(a, b, c) => D

(a): (b) => (c) => D

A

(b): (c) => D

B

(c): D

C

D

const add3 = (a: number, b: number, c: number) => a + b + c;
const curriedAdd3 = curry3(add3);
curriedAdd3(1)(2)(3); // 6