Take a function of two arguments, and return one that auto-curries. If any of the arguments is undefined, return a function that accepts that argument.
If both arguments are undefined, returns itself. If both arguments are defined, immediately calls f with those arguments if a is undefined, return a => f(a, b) if b is undefined, return b => f(a, b)
a function of two arguments.
Take a function of three arguments, and return one that auto-curries. If any of the arguments are undefined, return a function that accepts that argument.
If all arguments are undefined, returns itself. If all arguments are defined, immediately calls f with those arguments if a is undefined, return a => f(a, b, c) if b is undefined, return b => f(a, b, c) if c is undefined, return c => f(a, b, c)
a function of three arguments.
Take a function of four arguments, and return one that auto-curries. If any of the arguments are undefined, return a function that accepts that argument.
If all arguments are undefined, returns itself. If all arguments are defined, immediately calls f with those arguments if a is undefined, return a => f(a, b, c, d) if b is undefined, return b => f(a, b, c, d) if c is undefined, return c => f(a, b, c, d) if d is undefined, return d => f(a, b, c, d)
a function of four arguments.
Generated using TypeDoc
Load the full system with a single import.