def in_range

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

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

79# Checks a byte key against optional [lower, upper) bounds.
80def in_range(
81  key: Bytes.Bytes,
82  lower_bound: Maybe<&1, Bytes.Bytes>,
83  upper_bound: Maybe<&1, Bytes.Bytes>
84) -> Bool:
85  in_range.copies(clone.split(key), lower_bound, upper_bound)

Uses (5)

Used by (2)