package sequence

  1. Overview
  2. Docs

Parameters

Signature

type set
type elt = X.t
val empty : set
val is_empty : set -> bool
val mem : elt -> set -> bool
val add : elt -> set -> set
val singleton : elt -> set
val remove : elt -> set -> set
val union : set -> set -> set
val inter : set -> set -> set
val diff : set -> set -> set
val compare : set -> set -> int
val equal : set -> set -> bool
val subset : set -> set -> bool
val iter : (elt -> unit) -> set -> unit
val map : (elt -> elt) -> set -> set
val fold : (elt -> 'a -> 'a) -> set -> 'a -> 'a
val for_all : (elt -> bool) -> set -> bool
val exists : (elt -> bool) -> set -> bool
val filter : (elt -> bool) -> set -> set
val partition : (elt -> bool) -> set -> set * set
val cardinal : set -> int
val elements : set -> elt list
val min_elt : set -> elt
val min_elt_opt : set -> elt option
val max_elt : set -> elt
val max_elt_opt : set -> elt option
val choose : set -> elt
val choose_opt : set -> elt option
val split : elt -> set -> set * bool * set
val find : elt -> set -> elt
val find_opt : elt -> set -> elt option
val find_first : (elt -> bool) -> set -> elt
val find_first_opt : (elt -> bool) -> set -> elt option
val find_last : (elt -> bool) -> set -> elt
val find_last_opt : (elt -> bool) -> set -> elt option
val of_list : elt list -> set
val of_seq : elt t -> set
val to_seq : set -> elt t
OCaml

Innovation. Community. Security.