package spotlib
Module Weaktbl.Bucket
val create : int -> ('a, 'b) tval add : ('a, 'b) t -> 'a -> 'b -> unitval find : ('a, 'b) t -> ('a -> 'b -> bool) -> ('a * 'b) optionfind t f: the first (k,v) pair f k v = true, if exists, is returned as Some (k,v). If none found, returns None
val remove : ('a, 'b) t -> ('a -> 'b -> bool) -> ('a * 'b) optionremove t f: the first (k,v) pair f k v = true, if exists, is removed from t and returns the Some (k,v). If none found, returns None.
val removeq : ('a, 'b) t -> 'a -> 'b optionremoveq t k removes the binding of the pointer equal k from t and returns its value if exists. Otherwise it returns None.
val length : ('a, 'b) t -> intreturn the number of full elements