-
Notifications
You must be signed in to change notification settings - Fork 31
Add unionsWith
?
#55
Comments
👍 |
@paf31 just trying to pick up a ticket to get started with contributing, is this being worked on? I assume this would need the |
@Cmdv Yes, that's right, thanks! |
|
@hdgarrood just got pointed out to me on IRC by garyb as well!! I'll probably get stuck when it comes to testing but I'll crack on :) |
For tests, one property to check off the top of my head: the keys of all the maps that were unioned should exist in the resulting map. |
Also just to note, we can drop unionsWith :: forall f k v. Foldable f => (v -> v -> v) -> f (Map k v) -> Map k v |
@garyb how would that work??? 😕 |
Uh, yeah, I'm talking nonsense 😆... disregard that. |
This function doesn't currently exist, but I think it could, and would potentially be useful:
It's probably very simple to define this using what's already exported, but I think it's still useful to have these sorts of things defined for you.
The text was updated successfully, but these errors were encountered: