Skip to content

Consider adding a filter method to Maybe/Either #6

@tmciver

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.

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