package core-and-more

  1. Overview
  2. Docs

Parameters

module D : sig ... end

Signature

module D : sig ... end
type key = D.t
type 'a t = (key, 'a) Core.Hashtbl.t
val create : int -> (D.t, 'a) Core.Hashtbl.t
val empty : 'a -> (D.t, 'b) Core.Hashtbl.t
val add : key -> 'a -> 'a0 t -> unit
val find_or_add : key -> (unit -> 'a) -> 'a0 t -> 'a1
val update : key -> ('a option -> 'a) -> 'a0 t -> unit
val size : 'a t -> int
val is_empty : 'a t -> bool
val contains_key : D.t -> 'a t -> bool
val find_opt : D.t -> 'a t -> 'a0 option
val fold : (key -> 'a -> 'b -> 'b0) -> 'a0 t -> 'b1 -> 'b2
val fold2 : (key -> 'a -> key -> 'b -> 'c -> 'c) -> 'd t -> 'b t -> 'e -> 'f
val iter : (key -> 'a -> unit) -> 'b t -> unit
val as_kvp_list : 'a t -> (key * 'b) list
val pp : (Format.formatter -> key -> unit) -> (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a0 t -> unit
val copy : 'a t -> 'a0 t
OCaml

Innovation. Community. Security.