Snapshot.release.retired.loop: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend as Snapshot Lines 1377-1401 of mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&start_line=1377&end_line=1401 import Base def release.retired.loop( retired: List<&2, FileGeneration>, +target: Nat, matches: Bool ) -> RetiredRelease: match retired: case Nil{}: RetiredMissing{Nil{}} case Con{FileGeneration{+id, +size, +references}, Nil{}}: match matches: case True{}: release.retired.references(id, size, references, Nil{}) case False{}: RetiredMissing{Con{FileGeneration{id, size, references}, Nil{}}} case Con{FileGeneration{+id, +size, +references}, Con{FileGeneration{+next_id, +next_size, +next_references}, rest}}: match matches: case True{}: release.retired.references(id, size, references, Con{FileGeneration{next_id, next_size, next_references}, rest}) case False{}: release.retired.prepend(id, size, references, release.retired.loop(Con{FileGeneration{next_id, next_size, next_references}, rest}, target, Nat.is_eq(next_id, target))) Uses (8): 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=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_eq https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=FileGeneration https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=RetiredRelease https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=release.retired.prepend https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/Snapshot.bend&name=release.retired.references