@[specialize #[]]
def
Std.HashMap.mergeWithM
{m : Type (max u_1 u_2) → Type (max u_2 u_1)}
{α : Type u_2}
{β : Type (max u_1 u_2)}
[BEq α]
[Hashable α]
[Monad m]
(f : α → β → β → m β)
(self other : HashMap α β)
:
m (HashMap α β)
O(|other|) amortized. Merge two HashMaps.
The values of keys which appear in both maps are combined using the monadic function f.