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

.Partition() - same interface as filter but returns two arrays #150

Open
adammw opened this issue Apr 14, 2022 · 0 comments
Open

.Partition() - same interface as filter but returns two arrays #150

adammw opened this issue Apr 14, 2022 · 0 comments

Comments

@adammw
Copy link
Contributor

adammw commented Apr 14, 2022

Similar to Ruby's .partition method.

Currently this can be achieved by chaining .Filter() and .Without() but has higher overhead than simply partitioning it the first time.

@thoas thoas changed the title [feature request] .Partition() - same interface as filter but returns two arrays .Partition() - same interface as filter but returns two arrays Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants