Returns a curried equivalent of the provided function.
Curried function can accept one or multiple parameter at the time:
g(1)(2)(3)
g(1)(2, 3)
g(1, 2)(3)
g(1, 2, 3)
The special placeholder value __ may be used to specify "gaps", allowing partial application of any combination of arguments, regardless of their positions:
Returns a curried equivalent of the provided function.
Curried function can accept one or multiple parameter at the time:
g(1)(2)(3)
g(1)(2, 3)
g(1, 2)(3)
g(1, 2, 3)
The special placeholder value
__
may be used to specify "gaps", allowing partial application of any combination of arguments, regardless of their positions:g(1, 2, 3)
g(_, 2, 3)(1)
g(_, _, 3)(1)(2)
g(_, _, 3)(1, 2)
g(_, 2)(1)(3)
g(_, 2)(1, 3)
g(_, 2)(_, 3)(1)