We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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); };
The text was updated successfully, but these errors were encountered:
@kennyx46 looks really neat!! I think I am going to reuse your code... Thanks a lot 😄
Sorry, something went wrong.
No branches or pull requests
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:
The text was updated successfully, but these errors were encountered: