keen/col/mut-cuckoo-filter
Sourcemut-cuckoo-filter record mut (has private fields)Probabilistic set (has some false positives).
new mut-cuckoo-filter(capacity nat32)Use a capacity higher than the number of hashes you will add. It's recommended to create a single
mut-cuckoo-filter with a large capacity up-front and reuse it after calling clear.try-add-result enumalready-containedaddedfailed-to-addtry-add try-add-result(a mut-cuckoo-filter, hash nat32)If this returns
try-add-result, calls to probably-contains given hash will definitely return true. This may return try-add-result even if this exact hash was not added before. In that case it also guarantees that calls to probably-contains given hash will definitely return true. If there are too many conflics this will return try-add-result. In that case the call has no effect.