ByteMemTable.compact.live: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable Lines 509-517 of mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend&start_line=509&end_line=517 import Base # Drops tombstones after all older byte runs have been folded into one table. def compact.live(entries: List<&1, Entry>) -> List<&1, Entry>: match entries: case Nil{}: Nil{} case Con{Entry{_, None{}}, tail}: compact.live(tail) case Con{Entry{key, Some{value}}, tail}: Con{Entry{key, Some{value}}, compact.live(tail)} Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend&name=Entry