package riot

  1. Overview
  2. Docs

Parameters

module B : Base

Signature

type key = B.key
type 'v t
val create : ?size:int -> unit -> 'v t
val keys : 'v t -> key Stdlib.Seq.t
val get : 'v t -> key -> 'v option
val get_all : 'v t -> key -> 'v list
val is_empty : 'v t -> bool
val find_by : 'v t -> ((key * 'v) -> bool) -> (key * 'v) option
val remove : 'v t -> key -> unit
val remove_all : 'v t -> key list -> unit
val find_all_by : 'v t -> ((key * 'v) -> bool) -> (key * 'v) list
val has_key : 'v t -> key -> bool
val insert : 'v t -> key -> 'v -> unit
val remove_by : 'v t -> ((key * 'v) -> bool) -> unit
val replace : 'v t -> key -> 'v -> unit
val iter : 'v t -> ((key * 'v) -> unit) -> unit
val pp : (Stdlib.Format.formatter -> key -> unit) -> Stdlib.Format.formatter -> 'v t -> unit
OCaml

Innovation. Community. Security.