Function plutus_ledger_api::utils::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.