ByteMemTable.ordered.strict.go: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable Lines 533-546 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=533&end_line=546 import Base import mylsm-lsm-store@0.6.0.1/src/Keys.bend as Keys # Checks strict key order with fuel derived from the number of entries. def ordered.strict.go(fuel: Nat, entries: List<&1, Entry>) -> Bool: match fuel: case 0n: True{} case 1n+rest: match entries: case Nil{}: True{} case Con{_, Nil{}}: True{} case Con{Entry{first, _}, Con{Entry{second, _}, tail}}: +tail_valid = ordered.strict.go(rest, tail) Bool.and(ordered.strict.order(Keys.Bytes.cmp.with_inputs(first, second)), tail_valid) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat 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=ordered.strict.order https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/Keys.bend&name=Bytes.cmp.with_inputs