unionWith package:unordered-containers

The union of two maps. If a key occurs in both maps, the provided function (first argument) will be used to compute the result.
The union of two maps. If a key occurs in both maps, the provided function (first argument) will be used to compute the result.