package camllib

  1. Overview
  2. Docs
type ('a, 'b) hashtbl
type !'a compare = {
  1. hash : 'a -> int;
  2. equal : 'a -> 'a -> bool;
}
type ('a, 'b) t = ('a, 'b) hashtbl
val create : int -> ('a, 'b) t
val clear : ('a, 'b) t -> unit
val reset : ('a, 'b) t -> unit
val add : ('a, 'b) t -> 'a -> 'b -> unit
val copy : ('a, 'b) t -> ('a, 'b) t
val find : ('a, 'b) t -> 'a -> 'b
val find_all : ('a, 'b) t -> 'a -> 'b list
val mem : ('a, 'b) t -> 'a -> bool
val remove : ('a, 'b) t -> 'a -> unit
val replace : ('a, 'b) t -> 'a -> 'b -> unit
val iter : ('a -> 'b -> unit) -> ('a, 'b) t -> unit
val fold : ('a -> 'b -> 'c -> 'c) -> ('a, 'b) t -> 'c -> 'c
val map : ('a -> 'b -> 'c) -> ('a, 'b) t -> ('a, 'c) t
val length : ('a, 'b) t -> int
type statistics = Hashtbl.statistics = {
  1. num_bindings : int;
  2. num_buckets : int;
  3. max_bucket_length : int;
  4. bucket_histogram : int array;
}
val stats : ('a, 'b) t -> statistics
val print : ?first:(unit, Format.formatter, unit) format -> ?sep:(unit, Format.formatter, unit) format -> ?last:(unit, Format.formatter, unit) format -> ?firstbind:(unit, Format.formatter, unit) format -> ?sepbind:(unit, Format.formatter, unit) format -> ?lastbind:(unit, Format.formatter, unit) format -> (Format.formatter -> 'a -> unit) -> (Format.formatter -> 'b -> unit) -> Format.formatter -> ('a, 'b) t -> unit
module type HashedType = sig ... end
module type S = sig ... end
module Make (H : HashedType) : sig ... end
val hash : 'a -> int
val hash_param : int -> int -> 'a -> int
val stdcompare : 'a compare
module Compare : sig ... end
OCaml

Innovation. Community. Security.