package stdcompat

  1. Overview
  2. Docs

Parameters

module H : HashedType

Signature

type key = H.t
type 'a t
val clear : 'a t -> unit
val copy : 'a t -> 'a t
val add : 'a t -> key -> 'a -> unit
val find : 'a t -> key -> 'a
val find_all : 'a t -> key -> 'a list
val mem : 'a t -> key -> bool
val remove : 'a t -> key -> unit
val replace : 'a t -> key -> 'a -> unit
val iter : (key -> 'a -> unit) -> 'a t -> unit
val fold : (key -> 'a -> 'c -> 'c) -> 'a t -> 'c -> 'c
val length : 'a t -> int
val create : int -> 'a t
val reset : 'a t -> unit
val filter_map_inplace : (key -> 'a -> 'a option) -> 'a t -> unit
val find_opt : 'a t -> key -> 'a option
val stats : 'a t -> statistics
val of_seq : (key * 'a) Seq.t -> 'a t
val add_seq : 'a t -> (key * 'a) Seq.t -> unit
val replace_seq : 'a t -> (key * 'a) Seq.t -> unit
val to_seq : 'a t -> (key * 'a) Seq.t
val to_seq_keys : 'a t -> key Seq.t
val to_seq_values : 'a t -> 'a Seq.t
OCaml

Innovation. Community. Security.