package ocamlformat-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type !+'a t
val empty : 'a t
val add : t -> 'a -> 'a t -> 'a t
val add_to_list : t -> 'a -> 'a list t -> 'a list t
val update : t -> ('a option -> 'a option) -> 'a t -> 'a t
val singleton : t -> 'a -> 'a t
val remove : t -> 'a t -> 'a t
val merge : (t -> 'a option -> 'b option -> 'c option) -> 'a t -> 'b t -> 'c t
val union : (t -> 'a -> 'a -> 'a option) -> 'a t -> 'a t -> 'a t
val cardinal : 'a t -> int
val bindings : 'a t -> (t * 'a) list
val min_binding_opt : 'a t -> (t * 'a) option
val max_binding_opt : 'a t -> (t * 'a) option
val choose_opt : 'a t -> (t * 'a) option
val find_opt : t -> 'a t -> 'a option
val find_first : (t -> bool) -> 'a t -> t * 'a
val find_first_opt : (t -> bool) -> 'a t -> (t * 'a) option
val find_last : (t -> bool) -> 'a t -> t * 'a
val find_last_opt : (t -> bool) -> 'a t -> (t * 'a) option
val iter : (t -> 'a -> unit) -> 'a t -> unit
val fold : (t -> 'a -> 'acc -> 'acc) -> 'a t -> 'acc -> 'acc
val map : ('a -> 'b) -> 'a t -> 'b t
val mapi : (t -> 'a -> 'b) -> 'a t -> 'b t
val filter : (t -> 'a -> bool) -> 'a t -> 'a t
val filter_map : (t -> 'a -> 'b option) -> 'a t -> 'b t
val partition : (t -> 'a -> bool) -> 'a t -> 'a t * 'a t
val split : t -> 'a t -> 'a t * 'a option * 'a t
val is_empty : 'a t -> bool
val mem : t -> 'a t -> bool
val equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> int
val for_all : (t -> 'a -> bool) -> 'a t -> bool
val exists : (t -> 'a -> bool) -> 'a t -> bool
val to_list : 'a t -> (t * 'a) list
val to_seq : 'a t -> (t * 'a) Stdlib.Seq.t
val to_rev_seq : 'a t -> (t * 'a) Stdlib.Seq.t
val to_seq_from : t -> 'a t -> (t * 'a) Stdlib.Seq.t
val add_seq : (t * 'a) Stdlib.Seq.t -> 'a t -> 'a t
val of_seq : (t * 'a) Stdlib.Seq.t -> 'a t
val min_binding : 'a t -> (path * 'a) option
val get_min_binding : 'a t -> path * 'a
val max_binding : 'a t -> (path * 'a) option
val get_max_binding : 'a t -> string * 'a
val choose : 'a t -> (path * 'a) option
val get_any_binding : 'a t -> path * 'a
val find : path -> 'a t -> 'a option
val get : path -> 'a t -> 'a
val dom : 'a t -> set
val of_list : (path * 'a) list -> 'a t
val pp : ?sep:(Stdlib.Format.formatter -> unit -> unit) -> (Stdlib.Format.formatter -> (path * 'a) -> unit) -> Stdlib.Format.formatter -> 'a t -> unit
val dump : (Stdlib.Format.formatter -> 'a -> unit) -> Stdlib.Format.formatter -> 'a t -> unit
OCaml

Innovation. Community. Security.