haskell / haskell/containers

add Map.differenceSet

Open
#158 8 comments 0 reactions 0 assignees View on GitHub
feature-request Map
Dominant language
Haskell
Stars
355
Forks
194
Avg merge
3d 4h
Merged PRs (30d)
4

Description

In `Map.difference` the element type of the second `Map` does not matter and can be chosen arbitrarily. In a current application of mine I have simply a `Set` as second operand. How about adding this function:

```
differenceSet :: Ord k => Map k a -> Set k -> Map k a
```

?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.