def in_range.copies

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

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

69# Checks a byte key against optional [lower, upper) bounds.
70def in_range.copies(
71  copies: Bytes.Bytes & Bytes.Bytes,
72  lower_bound: Maybe<&1, Bytes.Bytes>,
73  upper_bound: Maybe<&1, Bytes.Bytes>
74) -> Bool:
75  match copies:
76    case (lower_key, upper_key):
77      in_range.checked(lower(lower_key, lower_bound), upper(upper_key, upper_bound))

Uses (8)

Used by (1)