def bloom_test
import mylsm-lsm-store@0.3.2.0/src/Sstable.bend as Sstableimport Base
171def bloom_test(bloom: Bloom, +key: String) -> Bool:
172 match bloom:
173 case Blm{+bits, +size}:
174 both(bit_get(bhash_n(key, 17, size), bits), bit_get(bhash_n(key, 257, size), bits))