insert_all : Dict(k, v), Dict(k, v) -> Dict(k, v) where [k.is_eq : k, k -> Bool, k.to_hash : k, Hasher -> Hasher]
Combine two dictionaries by keeping the
union of all the
key-value pairs. Where the same key is present in both dictionaries,
the value from the second input is kept.
expect {
first = Dict.single(1, "Not Me").insert(2, "And Me")
second = Dict.single(1, "Keep Me").insert(3, "Me Too")
expected = Dict.single(1, "Keep Me").insert(2, "And Me").insert(3, "Me Too")
Dict.is_eq(Dict.insert_all(first, second), expected)
}