Function cairo_lang_utils::collection_arithmetics::sub_maps
source · pub fn sub_maps<Key: Hash + Eq, Value: HasZero + Sub<Output = Value> + Clone + Eq, Rhs: IntoIterator<Item = (Key, Value)>>(
lhs: OrderedHashMap<Key, Value>,
rhs: Rhs
) -> OrderedHashMap<Key, Value>
Expand description
Returns a map which contains the difference 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.