fold
fold<
A,B,C>(f): (tuple) =>C
Defined in: Core/Tuple.ts:106
Applies a binary function to both values, collapsing the pair into a single value. Useful as the final step when consuming a pair in a pipeline.
Type Parameters
Section titled “Type Parameters”A
B
C
Parameters
Section titled “Parameters”(a, b) => C
Returns
Section titled “Returns”(
tuple):C
Parameters
Section titled “Parameters”Tuple<A, B>
Returns
Section titled “Returns”C