Module String.Set

String sets.

String sets

include Stdlib.Set.S with type elt := string with type t = Stdlib.Set.Make(Stdlib.String).t
type t = Stdlib.Set.Make(Stdlib.String).t
val empty : t
val is_empty : t -> bool
val mem : string -> t -> bool
val add : string -> t -> t
val singleton : string -> t
val remove : string -> t -> t
val union : t -> t -> t
val inter : t -> t -> t
val disjoint : t -> t -> bool
val diff : t -> t -> t
val compare : t -> t -> int
val equal : t -> t -> bool
val subset : t -> t -> bool
val iter : (string -> unit) -> t -> unit
val map : (string -> string) -> t -> t
val fold : (string -> 'a -> 'a) -> t -> 'a -> 'a
val for_all : (string -> bool) -> t -> bool
val exists : (string -> bool) -> t -> bool
val filter : (string -> bool) -> t -> t
val partition : (string -> bool) -> t -> t * t
val cardinal : t -> int
val elements : t -> string list
val min_elt : t -> string
val min_elt_opt : t -> string option
val max_elt : t -> string
val max_elt_opt : t -> string option
val choose : t -> string
val choose_opt : t -> string option
val split : string -> t -> t * bool * t
val find : string -> t -> string
val find_opt : string -> t -> string option
val find_first : (string -> bool) -> t -> string
val find_first_opt : (string -> bool) -> t -> string option
val find_last : (string -> bool) -> t -> string
val find_last_opt : (string -> bool) -> t -> string option
val of_list : string list -> t
val to_seq_from : string -> t -> string Stdlib.Seq.t
val to_seq : t -> string Stdlib.Seq.t
val add_seq : string Stdlib.Seq.t -> t -> t
val of_seq : string Stdlib.Seq.t -> t
type elt = string
val pp : ?⁠sep:unit Fmt.t -> string Fmt.t -> t Fmt.t

pp ~sep pp_elt ppf ss formats the elements of ss on ppf. Each element is formatted with pp_elt and elements are separated by ~sep (defaults to Format.pp_print_cut). If the set is empty leaves ppf untouched.

val pp_dump : t Fmt.t

pp_dump ppf ss prints an unspecified representation of ss on ppf.