Skip to content

Consider adding a filter method to Maybe/Either #6

Description

@tmciver

I've seen this in some other libs and it seems like a good idea. The idea would be to have a method like Maybe.filter that would take a callable predicate and would return Nothing in the Nothing case and for the Just case would return the same Just value if the predicate returned true and Nothing if the predicate returns false.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions