Set.S
include Ppx_compare_lib.Comparable.S with type t := t
val compare : t Base__Ppx_compare_lib.compare
include Ppx_compare_lib.Equal.S with type t := t
val equal : t Base__Ppx_compare_lib.equal
val sexp_of_t : t -> Sexplib0.Sexp.t
compare
types are equipped with functions to support use of @@deriving compare, equal, sexp
on types parameterized by such singleton types for compare functions. These derived functions are never actually called, since the compare type parameters are phantom.
val sexp_of_compare : compare -> Sexplib0.Sexp.t
val compare_of_sexp : Sexplib0.Sexp.t -> compare
module Provide_of_sexp (_ : sig ... end) : sig ... end
module Provide_pp (_ : sig ... end) : sig ... end
val empty : t
val is_empty : t -> bool
val cardinal : t -> int
Find an unspecified element. Different elements may be chosen for equivalent sets. O(1)
.
Find an unspecified element. Different elements may be chosen for equivalent sets. O(1)
.
Map f
over a set, removing any element e
where f e = None
.
Map f
over a set while threading an accumulator through calls to f
.