ByteSstIo.read.fold: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/ByteSstIo.bend as ByteSstIo Lines 173-182 of mylsm-lsm-store@0.6.0.1/src/ByteSstIo.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteSstIo.bend&start_line=173&end_line=182 import Base import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable def read.fold( entries: List<&1, ByteMemTable.Entry>, table: ByteMemTable.Table ) -> ByteMemTable.Table: match entries: case Nil{}: table case Con{ByteMemTable.Entry{key, val}, tail}: match val: case None{}: read.fold(tail, ByteMemTable.del(table, key)) case Some{value}: read.fold(tail, ByteMemTable.put(table, key, value)) Uses (6): 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 https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend&name=Table https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend&name=del https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend&name=put