def lower

mylsm-lsm-store@0.6.0.1 · src/scan/ByteRange.bend:25

import mylsm-lsm-store@0.6.0.1/src/scan/ByteRange.bend as ByteRange
import Base
import mylsm-lsm-store@0.6.0.1/src/Keys.bend as Keys
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

25# Checks an optional lower bound using the canonical byte comparator.
26def lower(key: Bytes.Bytes, bound: Maybe<&1, Bytes.Bytes>) -> Bool:
27  match bound:
28    case None{}:
29      True{}
30    case Some{value}:
31      lower.result(Keys.Bytes.cmp.with_inputs(key, value))

Uses (5)

Used by (1)