-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fn: more fn goodies #8985
fn: more fn goodies #8985
Conversation
Important Review skippedAuto reviews are limited to specific labels. 🏷️ Labels to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
48a736b
to
d1c0e8b
Compare
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.
Nice additions, no major comments!
d1c0e8b
to
ad31feb
Compare
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.
lgtm, just nits
1b536ab
to
bf84f83
Compare
331641b
to
ceded2a
Compare
This PR has transformed into the breaking change PR we have been planning for some time. Micro label has been stripped. Merging this means we must push a tag for fn v2.0.0 |
ceded2a
to
ae998a7
Compare
e2c2515
to
5153dbc
Compare
5153dbc
to
4a2f260
Compare
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.
LGTM
79f3050
to
81d433f
Compare
@Roasbeef: review reminder |
81d433f
to
c9b840d
Compare
c9b840d
to
9f35664
Compare
Change Description
We add
fn
equivalents of the following Haskell functions:sequenceA
renamed toCollect
, both the Option and Result variantstraverse
, both Option and Result variantsmapMaybe
, renamed to FilterMapcatMaybes
, renamed to TrimNonesnote
hush
These are additions to the API that I discovered were missing when trying to do a refactor.
Steps to Test
I can add tests if need be but for the most part I think the functions themselves are mostly checked by the type system. Thoughts appreciated.
Pull Request Checklist
Testing
Code Style and Documentation
[skip ci]
in the commit message for small changes.📝 Please see our Contribution Guidelines for further guidance.