Backup.split.batch.go: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/transfer/Backup.bend as Backup Lines 104-117 of mylsm-lsm-store@0.6.0.1/src/transfer/Backup.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/Backup.bend&start_line=104&end_line=117 import Base import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable def split.batch.go( fuel: Nat, entries: List<&1, ByteMemTable.Entry>, reversed: List<&1, ByteMemTable.Entry>, count: U32 ) -> BatchSplit: match fuel: case 0n: BatchSplit{List.reverse(&1, ByteMemTable.Entry, reversed), entries, count} case 1n+rest: match entries: case Nil{}: BatchSplit{List.reverse(&1, ByteMemTable.Entry, reversed), Nil{}, count} case Con{entry, tail}: split.batch.go(rest, tail, Con{entry, reversed}, (count + 1 : U32)) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add 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/transfer/Backup.bend&name=BatchSplit