package obatcher

  1. Overview
  2. Docs
type 'a data =
  1. | Empty of int
  2. | Buf of 'a array
val capacity : 'a data -> int
type 'a t = {
  1. mutable size : int;
  2. mutable buf : 'a data;
}
val length : 'a t -> int
val pp : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'b t -> unit
val init : ?capacity:int -> unit -> 'a t
val init_with : ?capacity:int -> int -> (int -> 'a) -> 'b t
val singleton : ?capacity:int -> 'a -> 'b t
val to_array : 'a t -> 'b array
val get : 'a t -> int -> 'b
val set : 'a t -> int -> 'b -> unit
val fold_left : ('a -> 'b -> 'c) -> 'd -> 'e t -> 'f
val iter : ('a -> 'b) -> 'c t -> unit
val split_from : 'a t -> int -> 'b t
val drop_last : 'a t -> unit
val insert : 'a t -> int -> 'b -> unit
val clip : 'a t -> int -> unit
OCaml

Innovation. Community. Security.