SortedRun.is_strict: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/SortedRun.bend as SortedRun Lines 66-74 of mylsm-lsm-store@0.6.0.1/src/SortedRun.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/SortedRun.bend&start_line=66&end_line=74 import Base import mylsm-lsm-store@0.6.0.1/src/Keys.bend as Keys import mylsm-lsm-store@0.6.0.1/src/MemTable.bend as MemTable # Check whether strict holds for the sorted-run operations. def is_strict(entries: List<&2, MemTable.Entry>) -> Bool: match entries: case Nil{}: True{} case Con{h, Nil{}}: True{} case Con{+h, Con{+next, +rest}}: bool_and(Keys.cmp_is_lt(entry_cmp(h, next)), is_strict(Con{next, rest})) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/Keys.bend&name=cmp_is_lt https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/MemTable.bend&name=Entry https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/SortedRun.bend&name=bool_and https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/SortedRun.bend&name=entry_cmp