def bloom_add
import mylsm-lsm-store@0.6.0.1/src/Sstable.bend as Sstableimport Base
182# Handle Bloom filter data for add for the SSTable indexes, filters, and lookup.
183def bloom_add(bloom: Bloom, +key: String) -> Bloom:
184 match bloom:
185 case Blm{bits, +size}:
186 Blm{bit_set(bhash_n(key, 17, size), bit_set(bhash_n(key, 257, size), bits)), size}