def put
import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTableimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
50# Prepends a byte value mutation without decoding either buffer.
51def put(table: Table, key: Bytes.Bytes, value: Bytes.Bytes) -> Table:
52 match table:
53 case Table{entries}:
54 Table{Con{Entry{key, Some{value}}, entries}}