Skip to content

Expanded unionWith for different value types #488

Open
@Benjamin-McRae-Tracsis

Description

@Benjamin-McRae-Tracsis

Hi, I think there's space for a unionWith with a signature like unionWith' :: Hashable k => (a -> c) -> (b -> c) -> (a -> b -> c) -> HM.HashMap k a -> HM.HashMap k b -> HM.HashMap k c.

This differs from the existing unionWith by allowing different ways to transforming the input maps, and being more specific in how to combine maps with differing value types.

My current usage is generally HM.unionWith' This That These. This would be a more powerful function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions