difference package:unordered-containers
Difference of two maps. Return elements of the first map
not existing in the second.
Difference of two sets. Return elements of the first set
not existing in the second.
>>> HashSet.difference (HashSet.fromList [1,2,3]) (HashSet.fromList [2,3,4])
fromList [1]
Difference with a combining function. When two equal keys
are encountered, the combining function is applied to the values of
these keys. If it returns
Nothing, the element is discarded
(proper set difference). If it returns (
Just y), the
element is updated with a new value
y.