-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hello guys! Really enjoy what you are doing.
In Haskell every function is curried. Probably you should transform existing functions to support currying? (And in es6 it looks nice))
My implementation is:
function curry(fn, ...initialArgs) {
const curried = (...args) => {
if (args.length >= fn.length) {
return fn(...args);
}
return (...moreArgs) => curried(...[...args, ...moreArgs]);
}
return curried(...initialArgs);
};
mateogianolio
Metadata
Metadata
Assignees
Labels
No labels