package batteries

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a t
type 'a enumerable = 'a t
type 'a mappable = 'a t
val empty : 'a t
val create : ('a -> 'a -> int) -> 'a t
val is_empty : 'a t -> bool
val singleton : ?cmp:('a -> 'a -> int) -> 'a -> 'a t
val mem : 'a -> 'a t -> bool
val find : 'a -> 'a t -> 'a
val add : 'a -> 'a t -> 'a t
val remove : 'a -> 'a t -> 'a t
val update : 'a -> 'a -> 'a t -> 'a t
val union : 'a t -> 'a t -> 'a t
val intersect : 'a t -> 'a t -> 'a t
val diff : 'a t -> 'a t -> 'a t
val sym_diff : 'a t -> 'a t -> 'a t
val compare : 'a t -> 'a t -> int
val equal : 'a t -> 'a t -> bool
val subset : 'a t -> 'a t -> bool
val disjoint : 'a t -> 'a t -> bool
val iter : ('a -> unit) -> 'a t -> unit
val at_rank_exn : int -> 'a t -> 'a
val map : ('a -> 'b) -> 'a t -> 'b t
val filter : ('a -> bool) -> 'a t -> 'a t
val filter_map : ('a -> 'b option) -> 'a t -> 'b t
val fold : ('a -> 'b -> 'b) -> 'a t -> 'b -> 'b
val exists : ('a -> bool) -> 'a t -> bool
val for_all : ('a -> bool) -> 'a t -> bool
val partition : ('a -> bool) -> 'a t -> 'a t * 'a t
val split : 'a -> 'a t -> 'a t * bool * 'a t
val split_opt : 'a -> 'a t -> 'a t * 'a option * 'a t
val split_lt : 'a -> 'a t -> 'a t * 'a t
val split_le : 'a -> 'a t -> 'a t * 'a t
val cardinal : 'a t -> int
val elements : 'a t -> 'a list
val to_list : 'a t -> 'a list
val to_array : 'a t -> 'a array
val min_elt : 'a t -> 'a
val pop_min : 'a t -> 'a * 'a t
val pop_max : 'a t -> 'a * 'a t
val max_elt : 'a t -> 'a
val choose : 'a t -> 'a
val pop : 'a t -> 'a * 'a t
val enum : 'a t -> 'a BatEnum.t
val of_enum : 'a BatEnum.t -> 'a t
val of_enum_cmp : cmp:('a -> 'a -> int) -> 'a BatEnum.t -> 'a t
val of_list : 'a list -> 'a t
val of_array : 'a array -> 'a t
val print : ?first:string -> ?last:string -> ?sep:string -> ('a BatInnerIO.output -> 'c -> unit) -> 'a BatInnerIO.output -> 'c t -> unit
module Infix : sig ... end
val get_cmp : 'a t -> 'a -> 'a -> int
OCaml

Innovation. Community. Security.