def del

mylsm-lsm-store@0.6.0.1 · src/ByteMemTable.bend:56

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

56# Prepends a tombstone for an arbitrary byte key.
57def del(table: Table, key: Bytes.Bytes) -> Table:
58  match table:
59    case Table{entries}:
60      Table{Con{Entry{key, None{}}, entries}}

Uses (5)

Used by (5)