package rhythm

  1. Overview
  2. Docs
type 'el t = {
  1. mutable first : int;
  2. mutable length : int;
  3. mutable capacity : int;
  4. mutable data : 'el option array;
}
val make : unit -> 'a t
val length : 'a t -> int
val isEmpty : 'a t -> bool
val rawi : int -> 'a t -> int
val ensureCapacity : 'a t -> unit
val toList : 'el t -> 'el list
val fromList : 'el list -> 'el t
val getIndexExn : int -> 'a t -> 'a
val setIndexExn : int -> 'a -> 'a t -> unit
val addFirst : 'a -> 'a t -> 'a t
val removeFirstExn : 'a t -> 'a t
val addLast : 'a -> 'a t -> 'a t
val removeLastExn : 'a t -> 'a t
OCaml

Innovation. Community. Security.