Function cairo_lang_utils::collection_arithmetics::add_maps
source · pub fn add_maps<Key: Hash + Eq, Value: HasZero + Add<Output = Value> + Clone + Eq>(
lhs: OrderedHashMap<Key, Value>,
rhs: OrderedHashMap<Key, Value>
) -> OrderedHashMap<Key, Value>
Expand description
Returns a map which contains the sum of the values from the given two maps, for each key.
If the key is missing from one of them, it is treated as zero.