# Structure Word8Array

Identifier index | Structure index
--- | ---

    (* Word8Array -- SML Basis Library *)

    eqtype array
    type elem   = Word8.word
    type vector = Word8Vector.vector

    val maxLen   : int

    val array    : int * elem -> array
    val tabulate : int * (int -> elem) -> array
    val fromList : elem list -> array

    val length   : array -> int
    val sub      : array * int -> elem
    val update   : array * int * elem -> unit
    val vector   : array -> vector

    val copy     : {src: array,  dst: array, di: int} -> unit
    val copyVec  : {src: vector, dst: array, di: int} -> unit

    val find     : (elem -> bool) -> array -> elem option
    val exists   : (elem -> bool) -> array -> bool
    val all      : (elem -> bool) -> array -> bool

    val app      : (elem -> unit) -> array -> unit
    val foldl    : (elem * 'b -> 'b) -> 'b -> array -> 'b
    val foldr    : (elem * 'b -> 'b) -> 'b -> array -> 'b
    val modify   : (elem -> elem) -> array -> unit

    val findi    : (int * elem -> bool) -> array -> (int * elem) option
    val appi     : (int * elem -> unit) -> array -> unit
    val foldli   : (int * elem * 'b -> 'b) -> 'b -> array -> 'b
    val foldri   : (int * elem * 'b -> 'b) -> 'b -> array -> 'b
    val modifyi  : (int * elem -> elem) -> array -> unit

    val collate  : (elem * elem -> order) -> array * array -> order

    (*
       [array] is the type of one-dimensional, mutable, zero-based
       constant-time-access arrays with elements of type Word8.word, that
       is, 8-bit words.  Arrays a1 and a2 are equal if both were created
       by the same call to a primitive (array0, array, tabulate, fromList).

       All operations are as for Array.array.
    *)

Identifier index | Structure index
--- | ---

Moscow ML 2.10