Skip to content

Extend Tuple API #7732

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

Merged
merged 13 commits into from
Dec 20, 2019
Merged

Extend Tuple API #7732

merged 13 commits into from
Dec 20, 2019

Conversation

brunnerant
Copy link
Contributor

This pull requests extends the current tuple API. It adds the methods take, drop and split, analogous to the same methods on collections.

Note that splitcould have been implemented in terms of take and drop, but the benchmarks showed that it's slightly more efficient to implement it on its own.

See @nicolasstucki, my semester project supervisor, for more information.

Copy link
Contributor

@nicolasstucki nicolasstucki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

@nicolasstucki nicolasstucki merged commit b26a4ac into scala:master Dec 20, 2019
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.

3 participants