Module DynArray


module DynArray: sig .. end
Dynamic arrays.

A dynamic array is equivalent to a OCaml array that will resize itself when elements are added or removed, except that floats are boxed and that no initialization element is required.


type 'a t 
exception Invalid_arg of int * string * string
When an operation on an array fails, Invalid_arg is raised. The integer is the value that made the operation fail, the first string contains the function name that has been called and the second string contains the parameter name that made the operation fail.

Array creation

val create : unit -> 'a t
create() returns a new empty dynamic array.
val make : int -> 'a t
make count returns an array with some memory already allocated so up to count elements can be stored into it without resizing.
val init : int -> (int -> 'a) -> 'a t
init n f returns an array of n elements filled with values returned by f 0 , f 1, ... f (n-1).

Array manipulation functions

val empty : 'a t -> bool
Return true if the number of elements in the array is 0.
val length : 'a t -> int
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val 
Return the number of elements in the array.
val