src code

instance method Function#curry

Function#curry(args...) → Function

Partially applies the function, returning a function with one or more arguments already "filled in."

Function#curry works just like Function#bind without the initial scope argument. Use the latter if you need to partially apply a function and modify its execution scope at the same time.