type elt = charThe element type
type t = Stdlib.Bytes.tThe type of an array instance
val dummy : eltA dummy element used for empty slots in the array
- since
- 2.4
val create : int -> tMake an array of the given size, filled with dummy elements.
val length : t -> intlength t gets the total number of elements currently in t.
val get : t -> int -> eltget t i gets the element at position i.
val set : t -> int -> elt -> unitset t i e sets the element at position i to e.
val sub : t -> int -> int -> tsub t i len gets the sub-array of t from position i to i + len.
val copy : t -> tcopy t makes a fresh copy of the array t.
val blit : t -> int -> t -> int -> int -> unitblit t s arr i len copies len elements from arr starting at i to position s from t.
val iter : (elt -> unit) -> t -> unititer f t iterates over the array t invoking f with the current element, in array order.