plutus_ledger_api::aux

Function union_btree_maps_with

Source
pub fn union_btree_maps_with<K: Clone + Ord, V: Clone, F: Fn(V, V) -> V>(
    f: F,
    l: BTreeMap<K, V>,
    r: BTreeMap<K, V>,
) -> BTreeMap<K, V>
Expand description

Union two BTreeMaps, call f to resolve conflicts if duplicate keys are encountered.