package containers

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type ro = [
  1. | `RO
]
type rw = [
  1. | `RW
]
type ('a, 'mut) t
type 'a vector = ('a, rw) t
type !'a sequence = ('a -> unit) -> unit
type !'a klist = unit -> [ `Cons of 'a * 'a klist | `Nil ]
type !'a gen = unit -> 'a option
type !'a equal = 'a -> 'a -> bool
type !'a ord = 'a -> 'a -> int
type !'a printer = Buffer.t -> 'a -> unit
type !'a formatter = Format.formatter -> 'a -> unit
val freeze : ('a, 'b) t -> ('a, ro) t
val freeze_copy : ('a, 'b) t -> ('a, ro) t
val create : unit -> ('a, rw) t
val create_with : ?capacity:int -> 'a -> ('a, rw) t
val make : int -> 'a -> ('a, 'mut) t
val init : int -> (int -> 'a) -> ('a, 'mut) t
val clear : ('a, rw) t -> unit
val ensure : ('a, rw) t -> int -> unit
val is_empty : ('a, 'b) t -> bool
val push : ('a, rw) t -> 'a -> unit
val append : ('a, rw) t -> ('a, 'b) t -> unit
val append_array : ('a, rw) t -> 'a array -> unit
val append_seq : ('a, rw) t -> 'a sequence -> unit
val equal : 'a equal -> ('a, 'b) t equal
val compare : 'a ord -> ('a, 'b) t ord
val pop : ('a, rw) t -> 'a option
val pop_exn : ('a, rw) t -> 'a
val copy : ('a, 'b) t -> ('a, 'mut) t
val shrink : ('a, rw) t -> int -> unit
val member : ?eq:('a -> 'a -> bool) -> 'a -> ('a, 'b) t -> bool
val sort : ('a -> 'a -> int) -> ('a, 'b) t -> ('a, 'mut) t
val sort' : ('a -> 'a -> int) -> ('a, rw) t -> unit
val uniq_sort : ('a -> 'a -> int) -> ('a, rw) t -> unit
val iter : ('a -> unit) -> ('a, 'b) t -> unit
val iteri : (int -> 'a -> unit) -> ('a, 'b) t -> unit
val map : ('a -> 'b) -> ('a, 'c) t -> ('b, 'mut) t
val filter : ('a -> bool) -> ('a, 'b) t -> ('a, 'mut) t
val filter' : ('a -> bool) -> ('a, rw) t -> unit
val fold : ('b -> 'a -> 'b) -> 'b -> ('a, 'c) t -> 'b
val exists : ('a -> bool) -> ('a, 'b) t -> bool
val for_all : ('a -> bool) -> ('a, 'b) t -> bool
val find : ('a -> bool) -> ('a, 'b) t -> 'a option
val find_exn : ('a -> bool) -> ('a, 'b) t -> 'a
val filter_map : ('a -> 'b option) -> ('a, 'c) t -> ('b, 'mut) t
val flat_map : ('a -> ('b, 'c) t) -> ('a, 'd) t -> ('b, 'mut) t
val flat_map' : ('a -> 'b sequence) -> ('a, 'c) t -> ('b, 'mut) t
val (>>=) : ('a, 'c) t -> ('a -> ('b, 'd) t) -> ('b, 'mut) t
val (>|=) : ('a, 'c) t -> ('a -> 'b) -> ('b, 'mut) t
val get : ('a, 'b) t -> int -> 'a
val set : ('a, rw) t -> int -> 'a -> unit
val remove : ('a, rw) t -> int -> unit
val rev : ('a, 'b) t -> ('a, 'mut) t
val rev' : ('a, rw) t -> unit
val size : ('a, 'b) t -> int
val length : ('a, 'b) t -> int
val capacity : ('a, 'b) t -> int
val unsafe_get_array : ('a, rw) t -> 'a array
val (--) : int -> int -> (int, 'mut) t
val of_array : 'a array -> ('a, 'mut) t
val of_list : 'a list -> ('a, 'mut) t
val to_array : ('a, 'b) t -> 'a array
val to_list : ('a, 'b) t -> 'a list
val of_seq : ?init:('a, rw) t -> 'a sequence -> ('a, rw) t
val to_seq : ('a, 'b) t -> 'a sequence
val slice : ('a, rw) t -> 'a array * int * int
val slice_seq : ('a, 'b) t -> int -> int -> 'a sequence
val of_klist : ?init:('a, rw) t -> 'a klist -> ('a, rw) t
val to_klist : ('a, 'b) t -> 'a klist
val of_gen : ?init:('a, rw) t -> 'a gen -> ('a, rw) t
val to_gen : ('a, 'b) t -> 'a gen
val pp : ?start:string -> ?stop:string -> ?sep:string -> 'a printer -> ('a, 'b) t printer
val print : ?start:string -> ?stop:string -> ?sep:string -> 'a formatter -> ('a, 'b) t formatter
OCaml

Innovation. Community. Security.