intersection package:unordered-containers

Intersection of two maps. Return elements of the first map for keys existing in the second.
Intersection of two sets. Return elements present in both the first set and the second.
>>> HashSet.intersection (HashSet.fromList [1,2,3]) (HashSet.fromList [2,3,4])
fromList [2,3]
Intersection of two maps. If a key occurs in both maps the provided function is used to combine the values from the two maps.
Intersection of two maps. If a key occurs in both maps the provided function is used to combine the values from the two maps.