Bloom Filter
let filter = new_with_estimates(1000000, 0.01)filter.add_string("Hello")filter.check_string("Hello")filter.add((100).to_le_bytes())
filter.check((100).to_le_bytes())moon update
moon add chaijie2018/bloomif estimate_false_positive_rate(20*n, 5, n) > 0.001let (m, k) = estimate_parameters(n, fp)
let actual_fp_rate = estimate_false_positive_rate(m, k, n)let filter = new_with_estimates(n, fp)
let actual_fp_rate = estimate_false_positive_rate(f.m, f.k, n)