String.Set
String sets.
include Stdlib.Set.S
with type elt := string
with type t = Stdlib.Set.Make(Stdlib.String).t
val empty : t
val singleton : string -> 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 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 iter : (string -> unit) -> t -> unit
val fold : (string -> 'acc -> 'acc) -> t -> 'acc -> 'acc
val is_empty : t -> bool
val mem : string -> t -> bool
val for_all : (string -> bool) -> t -> bool
val exists : (string -> bool) -> t -> bool
val to_list : t -> string list
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 to_rev_seq : t -> string Stdlib.Seq.t
val of_seq : string Stdlib.Seq.t -> 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.