Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Add unionsWith #147

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

colehaus
Copy link

Straightforward combo of unionWith and unions. Haskell's containers has it.

Straightforward combo of `unionWith` and `unions`. Haskell's `container` has it.
@hdgarrood
Copy link
Contributor

👍, see #55. I think this should at least have a few tests, though. In particular I think there are at least a couple of different sensible implementations of this function, based on which direction we fold or which direction we apply the given combining function in; a test should ideally prevent us from accidentally switching between two of these in a future release without noticing.

@colehaus
Copy link
Author

@hdgarrood Added a couple test mirroring those for unionWith.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants