module Set:sig
..end
String sets.
include Set.S
typet =
Astring.String.set
val min_elt : Astring.String.set -> string option
Exception safe Set.S.min_elt
.
val get_min_elt : Astring.String.set -> string
get_min_elt
is like Astring.String.Set.min_elt
but
Invalid_argument
on the empty set.val max_elt : Astring.String.set -> string option
Exception safe Set.S.max_elt
.
val get_max_elt : Astring.String.set -> string
get_max_elt
is like Astring.String.Set.max_elt
but
Invalid_argument
on the empty set.val choose : Astring.String.set -> string option
Exception safe Set.S.choose
.
val get_any_elt : Astring.String.set -> string
get_any_elt
is like Astring.String.Set.choose
but
Invalid_argument
on the
empty set.val find : string -> Astring.String.set -> string option
Exception safe Set.S.find
.
val get : string -> Astring.String.set -> string
get
is like Set.S.find
but
Invalid_argument
if
elt
is not in s
.val of_list : string list -> Astring.String.set
of_list ss
is a set from the list ss
.
val pp : ?sep:(Stdlib.Format.formatter -> unit -> unit) ->
(Stdlib.Format.formatter -> string -> unit) ->
Stdlib.Format.formatter -> Astring.String.set -> unit
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 dump : Stdlib.Format.formatter -> Astring.String.set -> unit
dump ppf ss
prints an unspecified representation of ss
on
ppf
.