Set.Makemodule Elt : sig ... endtype elt = Elt.tinclude Ppx_compare_lib.Comparable.S with type t := tval compare : t Base__Ppx_compare_lib.compareinclude Ppx_compare_lib.Equal.S with type t := tval equal : t Base__Ppx_compare_lib.equalval sexp_of_t : t -> Sexplib0.Sexp.tcompare 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.tval compare_of_sexp : Sexplib0.Sexp.t -> comparemodule Provide_of_sexp (_ : sig ... end) : sig ... endmodule Provide_pp (_ : sig ... end) : sig ... endval empty : tval is_empty : t -> boolval cardinal : t -> intFind 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.