Skip to content

Data.Map lacks unionsWithKeyΒ #137

@nomeata

Description

@nomeata

Hi,

I currently see

union :: Ord k => Map k a -> Map k a -> Map k a
unionWith :: Ord k => (a -> a -> a) -> Map k a -> Map k a -> Map k a
unionWithKey :: Ord k => (k -> a -> a -> a) -> Map k a -> Map k a -> Map k a
unions :: Ord k => [Map k a] -> Map k a
unionsWith :: Ord k => (a -> a -> a) -> [Map k a] -> Map k a

so it would be only consistent to have a

unionsWithKey :: Ord k => (k -> a -> a -> a) -> [Map k a] -> Map k a

as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions