-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Map.differenceSet #158
Comments
There have been at least one similar suggestions some time ago (you can look it up on [email protected] if you are interested). The "official" way of doing this is by using The problem with adding this function is that once we start adding functions for combining Maps and Sets, there a multiple several candidates and the API will grow quite for little gain. If you feel really strongly about this, you can start a discussion on [email protected] mailing list to see what is the oppinion of others. |
It's this discussion thread: |
Just for the record I like to add
where
Since the sets don't bring |
As mentioned before, please follow the guidelines outlined on the Haskell Wiki and start the discussed on [email protected] mailing list -- all API changes of containers go through the list so that others can discuss proposed changes. Cheers, |
We now have |
Another thing we could do is expand the merge interface to incorporate sets and even set/map combos. I expect this would be fairly straightforward, but I don't know how to avoid a ton of code duplication. Combining a set or map with a set or map to produce a set or map gives six different sorts of merge. Blegh! But I mention it because |
After having just spent some time going through the massive APIs to put together approachable docs I'm leaning towards not introducing more functions to the API that will maybe get a handful of uses :P I think that is more a point for splitting the core/internals into their own package (or just exposing the internals from |
Today the outlined Is there still any opposition to adding it? It is useful to have a way to process a set of keys in one go. |
In
Map.difference
the element type of the secondMap
does not matter and can be chosen arbitrarily. In a current application of mine I have simply aSet
as second operand. How about adding this function:?
The text was updated successfully, but these errors were encountered: