def upper

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

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

41# Checks an optional exclusive upper bound using byte order.
42def upper(key: Bytes.Bytes, bound: Maybe<&1, Bytes.Bytes>) -> Bool:
43  match bound:
44    case None{}:
45      True{}
46    case Some{value}:
47      upper.result(Keys.Bytes.cmp.with_inputs(key, value))

Uses (5)

Used by (1)