package ortac-runtime

  1. Overview
  2. Docs
type 'a t = 'a bag
val occurrences : 'a -> 'a t -> integer
val empty : 'a t
val is_empty : 'a t -> bool
val mem : 'a -> 'a t -> bool
val add : 'a -> 'a t -> 'a t
val singleton : 'a -> 'a t
val remove : 'a -> 'a t -> 'a t
val union : 'a t -> 'a t -> 'a t
val sum : 'a t -> 'a t -> 'a t
val inter : 'a t -> 'a t -> 'a t
val disjoint : 'a t -> 'a t -> bool
val diff : 'a t -> 'a t -> 'a t
val subset : 'a t -> 'a t -> bool
val choose : 'a t -> 'a
val choose_opt : 'a t -> 'a option
val map : ('a -> 'b) -> 'a t -> 'b t
val fold : ('b -> 'a -> 'a) -> 'b t -> 'a -> 'a
val for_all : ('a -> bool) -> 'a t -> bool
val _exists : ('a -> bool) -> 'a t -> bool
val filter : ('a -> bool) -> 'a t -> 'a t
val filter_map : ('a -> 'b option) -> 'a t -> 'b t
val partition : ('a -> bool) -> 'a t -> 'a t * 'a t
val cardinal : 'a t -> integer
val to_list : 'a t -> 'a list
val of_list : 'a list -> 'a t
val to_seq : 'a t -> 'a sequence
val of_seq : 'a sequence -> 'a t
OCaml

Innovation. Community. Security.