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 : (Stdlib.Format.formatter -> 'a -> unit) -> Stdlib.Format.formatter -> 'a t -> unit
val init : ?capacity:int -> unit -> 'a t
val init_with : ?capacity:int -> int -> (int -> 'a) -> 'a t
val singleton : ?capacity:int -> 'a -> 'a t
val to_array : 'a t -> 'a array
val get : 'a t -> int -> 'a
val set : 'a t -> int -> 'a -> unit
val fold_left : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
val iter : ('a -> 'b) -> 'a t -> unit
val split_from : 'a t -> int -> 'a t
val drop_last : 'a t -> unit
val insert : 'a t -> int -> 'a -> unit
val clip : 'a t -> int -> unit
OCaml

Innovation. Community. Security.