Skip to content

mapMaybeM #183

Closed
Closed
@andrewthad

Description

@andrewthad

Can I add mapMaybeM to vector? The type signature would be:

mapMaybeM :: (a -> m (Maybe b)) -> Vector a -> m (Vector b)

Although the list-equivalent of mapMaybeM is not in base, it's a pretty common thing for people to write. I can see from some googling that it exists in monad-extras, extra, and in stack. I bring this up because I think it highlights the utility of such a function and the common expected semantics people seem to have for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions