module Weakke:sig..end
Weak module of OCaml distribution modified by
Bertrand Jeannet with a Custom (polymorphic) module.Hashtbl.HashedType
module; the equal relation and hash function are taken from that
module. We will say that v is an instance of x if equal x v
is true.
The equal relation must be able to work on a shallow copy of
the values and give the same result as with the values themselves.
type 'a t
type'ahashtbl ='a t
type 'a compare = {
|
hash : |
|
equal : |
val create : int -> 'a tval clear : 'a t -> unitval merge : 'a t -> 'a -> 'aval merge_map : 'a t -> 'a -> ('a -> 'a) -> 'aval add : 'a t -> 'a -> unitval remove : 'a t -> 'a -> unitval find : 'a t -> 'a -> 'aval find_all : 'a t -> 'a -> 'a listval mem : 'a t -> 'a -> boolval iter : ('a -> 'b) -> 'a t -> unitval fold : ('a -> 'b -> 'b) -> 'a t -> 'b -> 'bval count : 'a t -> intval stats : 'a t -> int * int * int * int * int * intval print : ?first:(unit, Format.formatter, unit) Pervasives.format ->
?sep:(unit, Format.formatter, unit) Pervasives.format ->
?last:(unit, Format.formatter, unit) Pervasives.format ->
(Format.formatter -> 'a -> unit) ->
Format.formatter -> 'a t -> unitmodule type S =sig..end
Weak.Make.
module Make:
module Compare:sig..end