package bos

  1. Overview
  2. Docs
type 'a t = 'a Astring.String.Map.t
val empty : 'a t
val is_empty : 'a t -> bool
val mem : string -> 'a t -> bool
val add : string -> 'a -> 'a t -> 'a t
val singleton : string -> 'a -> 'a t
val remove : string -> 'a t -> 'a t
val merge : (string -> 'a option -> 'b option -> 'c option) -> 'a t -> 'b t -> 'c t
val union : (string -> 'a -> 'a -> 'a option) -> 'a t -> 'a t -> 'a t
val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> int
val equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
val iter : (string -> 'a -> unit) -> 'a t -> unit
val fold : (string -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
val for_all : (string -> 'a -> bool) -> 'a t -> bool
val exists : (string -> 'a -> bool) -> 'a t -> bool
val filter : (string -> 'a -> bool) -> 'a t -> 'a t
val partition : (string -> 'a -> bool) -> 'a t -> 'a t * 'a t
val cardinal : 'a t -> int
val bindings : 'a t -> (string * 'a) list
val min_binding_opt : 'a t -> (string * 'a) option
val max_binding_opt : 'a t -> (string * 'a) option
val choose_opt : 'a t -> (string * 'a) option
val split : string -> 'a t -> 'a t * 'a option * 'a t
val find_opt : string -> 'a t -> 'a option
val find_first : (string -> bool) -> 'a t -> string * 'a
val find_first_opt : (string -> bool) -> 'a t -> (string * 'a) option
val find_last : (string -> bool) -> 'a t -> string * 'a
val find_last_opt : (string -> bool) -> 'a t -> (string * 'a) option
val map : ('a -> 'b) -> 'a t -> 'b t
val mapi : (string -> 'a -> 'b) -> 'a t -> 'b t
val min_binding : 'a t -> (string * 'a) option
val get_min_binding : 'a t -> string * 'a
val max_binding : 'a t -> (string * 'a) option
val get_max_binding : 'a t -> string * 'a
val choose : 'a t -> (string * 'a) option
val get_any_binding : 'a t -> string * 'a
val find : string -> 'a t -> 'a option
val get : string -> 'a t -> 'a
val dom : 'a t -> Astring.String.set
val of_list : (string * 'a) list -> 'a t
val of_stdlib_map : 'a Map.Make(String).t -> 'a t
val to_stdlib_map : 'a t -> 'a Map.Make(String).t
val pp : ?sep:(Format.formatter -> unit -> unit) -> (Format.formatter -> (string * 'a) -> unit) -> Format.formatter -> 'a t -> unit
val dump : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a t -> unit
val dump_string_map : Format.formatter -> string t -> unit
OCaml

Innovation. Community. Security.