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
f := (x) => (y) => x + y f(1) -> 1 + y f(1)(2) -> 3
f := (x) => (y) => x + y
f(1)
1 + y
f(1)(2)
3
The inner function ((y) => x + y) should capture the value of the x variable from outer scope.
(y) => x + y
x
The text was updated successfully, but these errors were encountered:
#653 - Add support of function currying.
4329c47
4ef3349
16add32
277f41f
fdd538d
392a46b
Merge pull request #661 from sys27/feature/function-closure
1fae7e7
sys27
Successfully merging a pull request may close this issue.
f := (x) => (y) => x + y
f(1)
->1 + y
f(1)(2)
->3
The inner function (
(y) => x + y
) should capture the value of thex
variable from outer scope.The text was updated successfully, but these errors were encountered: