Additional functionality for KVMap
#
erase pairs whose names match the second argument from a list of
Name × DataValue
pairs
Equations
- Lean.KVMap.eraseCore x x = match x, x with | l, n => List.filter (fun a => decide (a.fst ≠ n)) l
Instances For
erase an entry from the map
Equations
- Lean.KVMap.erase x x = match x, x with | { entries := m }, k => { entries := Lean.KVMap.eraseCore m k }
Instances For
update a Boolean entry based on its current value.
Equations
- Lean.KVMap.updateBool m k f = Lean.KVMap.insert m k (Lean.DataValue.ofBool (f (Lean.KVMap.getBool m k)))