@tempots/std
curryLeft() function
Curries a function from left to right.
Signature:
curryLeft: Rest extends unknown[], Ret>(f: (a: A, ...rest: Rest) => Ret) => (a: A) => (...rest: Rest) => Ret
Parameters
Parameter |
Type |
Description |
---|---|---|
f |
(a: A, ...rest: Rest) => Ret |
The function to curry. |
Returns: (a: A) => (...rest: Rest) => Ret
A curried function.