-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Added stablePartition by condition array method #367
Conversation
This function is inspired by Ruby's The name |
Generated by 🚫 Danger |
Codecov Report
@@ Coverage Diff @@
## master #367 +/- ##
==========================================
+ Coverage 90.68% 90.73% +0.04%
==========================================
Files 53 53
Lines 2470 2482 +12
==========================================
+ Hits 2240 2252 +12
Misses 230 230
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @neoneye, Thank you for your contribution :)
Great extension and implementation :)
Just suggestion about the naming, what you think about divided(by:)
?
I'm not good at naming 😅 but I think divided(by:)
makes sense in this context. What do you think? :)
I'm not a native english speaker, so I don't know. Your name Ideas for other names: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me :)
@LucianoPAlmeida I just added parameter names to the returned tuple. Perhaps this is helpful to some users. I can't think of more things. I think it's ready for merge. |
@LucianoPAlmeida wait a little. I'm considering moving it to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@neoneye Moving to collection is a good idea :)
Olà @LucianoPAlmeida The current I have made a collection-dividedby branch. Here the Perhaps you can decide if you want |
@neoneye I agree that Array is the primary use case, so maybe it's enough to let it just as an Array extension :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@neoneye @LucianoPAlmeida Thank you for this 💪 💯
Checklist