module CCBloom:sig..end
status: experimental
Since 0.13
type'asequence =('a -> unit) -> unit
type'agen =unit -> 'a option
type'ahash_funs =('a -> int) array
k hash functions on values of type 'a.
Never ever modify such an array after use!val default_hash_funs : int -> 'a hash_funsHashtbl.seeded_hash on k seedstype 'a t
'aval create : ?hash:'a hash_funs -> int -> 'a tcreate ?hash size creates a filter with given size, and functions.
By default it uses CCBloom.default_hash_funsval create_default : ?hash_len:int -> int -> 'a tcreate_default ?hash_len size is the same as
create ~hash:(default_hash_funs hash_len) size.
It uses the given number of default hash functions.val copy : 'a t -> 'a tval size : 'a t -> intval load : 'a t -> float
val mem : 'a t -> 'a -> boolmem f x tests whether x (probably) belongs to fval add : 'a t -> 'a -> unitadd f x adds x into fval union_mut : into:'a t -> 'a t -> unitunion_mut ~into f changes into into the union of into and f.
into and f MUST have the same set of hash functionsInvalid_argument if the two sets do not have the same sizeval union : 'a t -> 'a t -> 'a tInvalid_argument if the two sets do not have the same sizeval inter_mut : into:'a t -> 'a t -> unitinter_mut ~into f changes into into the intersection of into and f
into and f MUST have the same set of hash functionsInvalid_argument if the two sets do not have the same sizeval inter : 'a t -> 'a t -> 'a tInvalid_argument if the two sets do not have the same sizeval add_list : 'a t -> 'a list -> unit
val add_seq : 'a t -> 'a sequence -> unit
val add_gen : 'a t -> 'a gen -> unit