-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Feature Request: Partition #1348
Comments
I'm not sure how I feel about adding partition to async but I would be open to a |
@megawac that makes perfect sense to me! |
👍 for supporting |
Fixed in #1364. |
Would be good to have a new collections method for "partition"
Here's a description of how the method works in Ruby:
Returns two arrays, the first containing the elements of enum for which the block evaluates to true, the second containing the rest.
So it's a bit like a filter/reject combo.
If others are interested and I get time then I'll have a go at implementing but it won't be for a few weeks at least but I thought I would put the idea here in case someone else has time
The text was updated successfully, but these errors were encountered: