pub fn union_of<K, V, F>(
one: &HashMap<K, V>,
two: &HashMap<K, V>,
f: F,
) -> HashMap<K, V>
Expand description
Merges two hashmaps, using f where the keys exist in both hashmaps
- one: The first hashmap
- two: The second hashmap
- f: What to do when the key exists in both hashmaps
- Returns: The union of one and two