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

Add monadic (fluent) interface for maybe #1

Closed
wants to merge 1 commit into from
Closed

Conversation

tom91136
Copy link
Owner

This PR implements Dobiasd#288.

I've added new checks directly below the existing maybe tests to make sure it compiles.
An extra test on chaining the fluent interface is also included.

I've made the following additions to the API:

  • A just_if method (e.g filterM for our maybe functor) which I believe is missing.
  • Moved is_maybe from internal to top-level as we need this for join, and I also think this is a very useful API to expose.

Add just_if for filtering maybe
@tom91136
Copy link
Owner Author

Oops, CLion's PR UI is garbage, should have been against upstream.

@tom91136 tom91136 closed this Dec 25, 2023
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.

1 participant