VisibleStats.removed: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/scan/VisibleStats.bend as VisibleStats Lines 22-27 of mylsm-lsm-store@0.6.0.1/src/scan/VisibleStats.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/VisibleStats.bend&start_line=22&end_line=27 import Base # Removes one visible key, its key bytes, and its old value bytes. def removed(current: Stats, key_bytes: Nat, value_bytes: Nat) -> Decision: match current: case Stats{entries, payload_bytes}: Applied{Stats{Nat.sub(entries, 1n), Nat.sub(payload_bytes, Nat.add(key_bytes, value_bytes))}} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.sub https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/VisibleStats.bend&name=Decision https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/VisibleStats.bend&name=Stats