Skip to content

Move TupledFunctions to standard directory #10408

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

Closed
wants to merge 1 commit into from

Conversation

liufengyun
Copy link
Contributor

@liufengyun liufengyun commented Nov 20, 2020

Move TupledFunctions to standard directory

For discussion:

  • Do we really need it? How useful they are in practice.

    For example, stdlib only defines such methods up to arity 5

  • What about other operations? Such as, curried and uncurried?

  • Rename TupledFunction to FunctionTupling?

@nicolasstucki
Copy link
Contributor

TupledFuntions are there to support generic function application of any arity. I guess we could be added later to the language when someone finds the need for this feature.

@nicolasstucki
Copy link
Contributor

The name was chosen to be aligned with FuntionN.tupled.

@nicolasstucki
Copy link
Contributor

I believe we can encode curry and uncurry using TupledFunction and *:.

@nicolasstucki
Copy link
Contributor

I created #10411 to discuss this further

@liufengyun
Copy link
Contributor Author

Superseded by #10416

@liufengyun liufengyun closed this Nov 20, 2020
@liufengyun liufengyun deleted the move-tupledfun branch November 20, 2020 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants