def next
import mylsm-lsm-store@0.6.0.1/src/scan/RangeCursor.bend as RangeCursorimport Base
319# Returns one match, a skip event, or end while returning the bounds.
320def next(cursor: Cursor, bounds: Bounds & Bounds) -> Step:
321 match cursor:
322 case RangeReady{entries}:
323 next.ready(entries, bounds)
324 case RangeEnded{}:
325 match bounds:
326 case (_, retained): RangeEnd{RangeEnded{}, retained}
327 case RangeClosed{}:
328 match bounds:
329 case (_, retained): RangeEnd{RangeClosed{}, retained}