Skip to content

zipWithM #204

@robrix

Description

@robrix

Control.Monad exports zipWithM, defined as:

zipWithM :: Applicative m => (a -> b -> m c) -> [a] -> [a] -> m [a]
zipWithM f as bs = sequenceA $ zipWith f as bs

No reason semialign couldn't generalize this to work with Zip, too. I'd be happy to submit a PR if that would be welcome.

Thanks all for a lovely suite of packages 💟

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions