SortedRun.rank_runs: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/SortedRun.bend as SortedRun Lines 259-265 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=259&end_line=265 import Base import mylsm-lsm-store@0.6.0.1/src/MemTable.bend as MemTable # Rank runs for the sorted-run operations. def rank_runs(runs: List<&2, List<&2, MemTable.Entry>>, +rank: Nat) -> List<&2, RunGroup>: match runs: case Nil{}: Nil{} case Con{entries, rest}: Con{RunGroup{rank, rank, entries}, rank_runs(rest, 1n+rank)} Uses (4): 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/MemTable.bend&name=Entry https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/SortedRun.bend&name=RunGroup