package camomile

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

XArray : extensible arrays

type 'a xarray

XArray will be replaced by Dynarray in future.

type 'a t = 'a xarray
val init : ?bufsize:int -> int -> 'a -> (int -> 'a) -> 'a xarray
val make : ?bufsize:int -> int -> 'a -> 'a xarray
val length : 'a xarray -> int
val get : 'a xarray -> int -> 'a
val set : 'a xarray -> int -> 'a -> unit
type index
val nth : 'a xarray -> int -> index
val first : 'a xarray -> index
val last : 'a xarray -> index
val look : 'a xarray -> index -> 'a
val next : 'a t -> index -> index
val prev : 'a t -> index -> index
val move : 'a t -> index -> int -> index
val out_of_range : 'a xarray -> index -> bool
val compare_index : 'a xarray -> index -> index -> int
val clear : 'a xarray -> unit
val reset : 'a xarray -> unit
val copy : 'a xarray -> 'a xarray
val sub : 'a xarray -> int -> int -> 'a xarray
val add_element : 'a xarray -> 'a -> unit
val add_array : 'a xarray -> 'a array -> unit
val add_xarray : 'a xarray -> 'a xarray -> unit
val append : 'a xarray -> 'a xarray -> 'a xarray
val iter : ('a -> unit) -> 'a xarray -> unit
val array_of : 'a xarray -> 'a array
val shrink : 'a xarray -> int -> unit
OCaml

Innovation. Community. Security.