Skip to content

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