the first parameter type
the second parameter type
the third parameter type
the result type
Invoke the function
Returns a new composed function which first applies the current function and then the one you pass as parameter.
Applies this function partially to one argument.
const plus5 = Function3.of(
(x:number,y:number,z:number)=>x+y+z)
.apply1(5);
assert.equal(8, plus5(1,2));
Applies this function partially to two arguments.
const plus54 = Function3.of(
(x:number,y:number,z:number)=>x+y+z)
.apply2(5,4);
assert.equal(12, plus54(3));
Returns a curried version of this function, for example: See Function2.curried
Returns a version of this function taking its parameters in the reverse order.
Returns a version of this function which takes a tuple instead of individual parameters.
Generated using TypeDoc
Function3 encapsulates a function taking three parameters and returning a value. It adds some useful functions to combine or transform functions.