Skip to content
New issue

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

Add support of function currying #653

Closed
sys27 opened this issue Jul 13, 2023 · 0 comments · Fixed by #661
Closed

Add support of function currying #653

sys27 opened this issue Jul 13, 2023 · 0 comments · Fixed by #661
Assignees
Milestone

Comments

@sys27
Copy link
Owner

sys27 commented Jul 13, 2023

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.

@sys27 sys27 added this to the xFunc 4.3.0 milestone Jul 13, 2023
@sys27 sys27 self-assigned this Jul 13, 2023
sys27 added a commit that referenced this issue Jul 16, 2023
sys27 added a commit that referenced this issue Jul 16, 2023
sys27 added a commit that referenced this issue Jul 16, 2023
sys27 added a commit that referenced this issue Aug 1, 2023
sys27 added a commit that referenced this issue Aug 1, 2023
sys27 added a commit that referenced this issue Aug 1, 2023
@sys27 sys27 closed this as completed in #661 Aug 1, 2023
sys27 added a commit that referenced this issue Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant