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 -> 'a t -> unit
val find_or_add : key -> (unit -> 'a) -> 'a t -> 'a
val update : key -> ('a option -> 'a) -> 'a 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 -> 'a option
val fold : (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
val fold2 : (key -> 'a -> key -> 'b -> 'c -> 'c) -> 'a t -> 'b t -> 'c -> 'c
val iter : (key -> 'a -> unit) -> 'a t -> unit
val as_kvp_list : 'a t -> (key * 'a) list
val pp : (Stdlib.Format.formatter -> key -> unit) -> (Stdlib.Format.formatter -> 'a -> unit) -> Stdlib.Format.formatter -> 'a t -> unit
val copy : 'a t -> 'a t
OCaml

Innovation. Community. Security.