def seek
mylsm-lsm-store@0.6.0.1 · src/scan/SstCursor.bend:427
import mylsm-lsm-store@0.6.0.1/src/scan/SstCursor.bend as SstCursor
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
427
428def seek(cursor: Cursor, lower: Maybe<&1, Bytes.Bytes>) -> Cursor:
429 match cursor:
430 case Active{inner, bounds}:
431 match bounds:
432 case Bounds{_, upper, prefix}:
433 Active{inner, Bounds{lower, upper, prefix}}
434 case Ended{}: Ended{}
435 case Closed{}: Closed{}
436 case Failed{error}: Failed{error}