VisibleStats.replaced: 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 29-33 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=29&end_line=33 import Base # Replaces a value without changing the visible key count. def replaced(current: Stats, old_bytes: Nat, new_bytes: Nat) -> Decision: match current: case Stats{entries, payload_bytes}: Applied{Stats{entries, Nat.add(Nat.sub(payload_bytes, old_bytes), new_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