uncurry
Call Signature
Section titled “Call Signature”uncurry<
A,B,C>(f): (a,b) =>C
Defined in: Composition/uncurry.ts:26
Converts a curried function into a multi-argument function.
By default flattens two argument stages. Pass 3 or 4 as the second argument for deeper
currying.
The returned value is never inspected or invoked. A curried factory that returns a thunk or a
Task keeps returning that function; uncurry only flattens the chosen number of outer stages.
Type Parameters
Section titled “Type Parameters”A
B
C
Parameters
Section titled “Parameters”(a) => (b) => C
Returns
Section titled “Returns”(a, b) => C
Example
Section titled “Example”flip for reversing curried argument order
Call Signature
Section titled “Call Signature”uncurry<
A,B,C,D>(f,arity): (a,b,c) =>D
Defined in: Composition/uncurry.ts:27
Converts a curried function into a multi-argument function.
By default flattens two argument stages. Pass 3 or 4 as the second argument for deeper
currying.
The returned value is never inspected or invoked. A curried factory that returns a thunk or a
Task keeps returning that function; uncurry only flattens the chosen number of outer stages.
Type Parameters
Section titled “Type Parameters”A
B
C
D
Parameters
Section titled “Parameters”(a) => (b) => (c) => D
3
Returns
Section titled “Returns”(a, b, c) => D
Example
Section titled “Example”flip for reversing curried argument order
Call Signature
Section titled “Call Signature”uncurry<
A,B,C,D,E>(f,arity): (a,b,c,d) =>E
Defined in: Composition/uncurry.ts:28
Converts a curried function into a multi-argument function.
By default flattens two argument stages. Pass 3 or 4 as the second argument for deeper
currying.
The returned value is never inspected or invoked. A curried factory that returns a thunk or a
Task keeps returning that function; uncurry only flattens the chosen number of outer stages.
Type Parameters
Section titled “Type Parameters”A
B
C
D
E
Parameters
Section titled “Parameters”(a) => (b) => (c) => (d) => E
4
Returns
Section titled “Returns”(a, b, c, d) => E
Example
Section titled “Example”flip for reversing curried argument order