Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Add partial functions #3

Open
WilliamRagstad opened this issue Jan 27, 2022 · 0 comments
Open

Add partial functions #3

WilliamRagstad opened this issue Jan 27, 2022 · 0 comments
Labels
• enhancement New feature or request ∆ feature New feature suggestion

Comments

@WilliamRagstad
Copy link
Member

WilliamRagstad commented Jan 27, 2022

Allow for creation of partially applied functions using currying.

f(int x, int y) = x + y
g = f(5) # Missing one argument, g becomes a function with the remaining arguments for f
g(37) # Finally evaluated to the integer 42 (All arguments passed)
@WilliamRagstad WilliamRagstad added • enhancement New feature or request ∆ feature New feature suggestion labels Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
• enhancement New feature or request ∆ feature New feature suggestion
Projects
None yet
Development

No branches or pull requests

1 participant