intersection package:dhall

Combine two Map on their shared keys, keeping the value from the first Map
intersection = intersectionWith (\v _ -> v)
>>> intersection (fromList [("C",1),("B",2)]) (fromList [("B",3),("A",4)])
fromList [("B",2)]
Combine two Maps on their shared keys, using the supplied function to combine values from the first and second Map
>>> intersectionWith (+) (fromList [("C",1),("B",2)]) (fromList [("B",3),("A",4)])
fromList [("B",5)]