VisibleCursor.decision.step: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/scan/VisibleCursor.bend as VisibleCursor Lines 241-264 of mylsm-lsm-store@0.6.0.1/src/scan/VisibleCursor.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/VisibleCursor.bend&start_line=241&end_line=264 import Base import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable import mylsm-lsm-store@0.6.0.1/src/scan/RangeCursor.bend as RangeCursor import mylsm-lsm-store@0.6.0.1/src/scan/ScanMerge.bend as ScanMerge import mylsm-lsm-store@0.6.0.1/src/scan/SstCursor.bend as SstCursor def decision.step( decision: ScanMerge.Decision, base: Maybe<&1, SstCursor.Cursor>, base_entry: ByteMemTable.Entry, delta_entry: ByteMemTable.Entry, delta_tail: List<&1, ByteMemTable.Entry>, bounds: RangeCursor.Bounds ) -> Step: match decision: case ScanMerge.EmitDelta{}: delta.output(delta_entry, base, Some{base_entry}, delta_tail, bounds) case ScanMerge.EmitBase{}: match base: case Some{cursor}: Item{base_entry, Active{Some{cursor}, None{}, Con{delta_entry, delta_tail}, bounds, None{}}} case None{}: End{} case ScanMerge.EmitBoth{}: delta.output(delta_entry, base, None{}, delta_tail, bounds) case ScanMerge.SkipDelta{}: Skip{Active{base, Some{base_entry}, delta_tail, bounds, None{}}} case ScanMerge.SkipBoth{}: Skip{Active{base, None{}, delta_tail, bounds, None{}}} case ScanMerge.Finished{}: End{} Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe 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/scan/RangeCursor.bend&name=Bounds https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/ScanMerge.bend&name=Decision https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/SstCursor.bend&name=Cursor https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/VisibleCursor.bend&name=Cursor https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/VisibleCursor.bend&name=Step https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/VisibleCursor.bend&name=delta.output