Module Astring.String.Set

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

get_min_elt is like Astring.String.Set.min_elt but

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

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

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

val of_list : string list -> Astring.String.set

of_list ss is a set from the list ss.

val of_stdlib_set : Stdlib.Set.Make(Stdlib.String).t -> Astring.String.set

of_stdlib_set s is a set from the stdlib-compatible set s.

val to_stdlib_set : Astring.String.set -> Stdlib.Set.Make(Stdlib.String).t

to_stdlib_set s is the stdlib-compatible set equivalent to s.

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.