package core-and-more

  1. Overview
  2. Docs
type elt
type t
val create : int -> t
val empty : unit -> t
val singleton : elt -> t
val add : elt -> t -> unit
val remove : elt -> t -> unit
val size : t -> int
val is_empty : t -> bool
val contains : elt -> t -> bool
val fold : (elt -> 'b -> 'b) -> t -> 'b -> 'b
val fold2 : (elt -> elt -> 'a -> 'a) -> t -> t -> 'a -> 'a
val as_list : t -> elt list
val iter : (elt -> unit) -> t -> unit
val union : t -> t -> t
val pp : (Format.formatter -> elt -> unit) -> Format.formatter -> t -> unit
val update : (elt option -> unit) -> elt -> t -> unit
val copy : t -> t
OCaml

Innovation. Community. Security.