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
?
In
Map.differencethe element type of the secondMapdoes not matter and can be chosen arbitrarily. In a current application of mine I have simply aSetas second operand. How about adding this function:?