module Set: sig
.. end
String sets.
String sets
include Set.S
type
t = 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
val max_elt : Astring.String.set -> string option
Exception safe Set.S.max_elt
.
val get_max_elt : Astring.String.set -> string
val choose : Astring.String.set -> string option
Exception safe Set.S.choose
.
val get_any_elt : Astring.String.set -> string
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
Raises 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:(Format.formatter -> unit -> unit) ->
(Format.formatter -> string -> unit) ->
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 : Format.formatter -> Astring.String.set -> unit
dump ppf ss
prints an unspecified representation of ss
on
ppf
.