package containers

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type key
type 'a t
val empty : unit -> 'a t
val create : int -> 'a t
val is_empty : 'a t -> bool
val find : 'a t -> key -> 'a
val get_exn : key -> 'a t -> 'a
val get : key -> 'a t -> 'a option
val mem : 'a t -> key -> bool
val length : 'a t -> int
val replace : 'a t -> key -> 'a -> 'a t
val update : 'a t -> key -> ('a option -> 'a option) -> 'a t
val remove : 'a t -> key -> 'a t
val copy : 'a t -> 'a t
val merge : (key -> 'a option -> 'a option -> 'a option) -> 'a t -> 'a t -> 'a t
val iter : 'a t -> (key -> 'a -> unit) -> unit
val fold : ('b -> key -> 'a -> 'b) -> 'b -> 'a t -> 'b
val map : (key -> 'a -> 'b) -> 'a t -> 'b t
val filter : (key -> 'a -> bool) -> 'a t -> 'a t
val filter_map : (key -> 'a -> 'b option) -> 'a t -> 'b t
val for_all : (key -> 'a -> bool) -> 'a t -> bool
val exists : (key -> 'a -> bool) -> 'a t -> bool
val of_seq : (key * 'a) sequence -> 'a t
val of_list : (key * 'a) list -> 'a t
val add_seq : 'a t -> (key * 'a) sequence -> 'a t
val add_list : 'a t -> (key * 'a) list -> 'a t
val to_seq : 'a t -> (key * 'a) sequence
val to_list : 'a t -> (key * 'a) list
val equal : 'a equal -> 'a t equal
val pp : key printer -> 'a printer -> 'a t printer
val print : key formatter -> 'a formatter -> 'a t formatter
OCaml

Innovation. Community. Security.