Snapshot.publish.registry.current: 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 1226-1239 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=1226&end_line=1239 import Base def publish.registry.current( current: FileGeneration, retired: List<&2, FileGeneration>, next_bytes: Nat ) -> GenerationRegistry: match current: case FileGeneration{+id, +size, references}: match references: case 0n: GenerationRegistry{FileGeneration{Nat.add(id, 1n), next_bytes, 0n}, retired} case 1n+rest: GenerationRegistry{FileGeneration{Nat.add(id, 1n), next_bytes, 0n}, Con{FileGeneration{id, size, 1n+rest}, retired}} Uses (5): 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.add 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=GenerationRegistry