insertWith package:monoidal-containers

O(log n). Insert a value on some key, if it exists apply the combining function.