def next

mylsm-lsm-store@0.6.0.1 · src/scan/RangeCursor.bend:319

import mylsm-lsm-store@0.6.0.1/src/scan/RangeCursor.bend as RangeCursor
import 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}

Uses (6)

Used by (1)