<array>

The class of sequences whose elements are arranged according to a Cartesian coordinate system.

An array element is referred to by a (possibly empty) series of indices.  The length of the series must equal the range of the array.  Each index must be a non-negative integer less than the corresponding dimension.  An array element may alternatively be referred to by an integer, which is interpreted as a row-major index.

Arrays typically use space efficient representations, and the average time required to access a randomly chosen element is typically sublinear to the number of elements.

When a single-dimensional array is created, the array created will be an instance of <vector>.

Each concrete subclass of <array> must either provide or inherit implementations of the functions element, element-setter, and dimensions.

Exported from

Modifiers

abstract free open

Make keywords

dimensions:An instance of <sequence> with elements that are instances of <integer>.  This argument specifies the dimensions of the array.  The size of the sequence specifies the rank (number of dimensions) of the array, and each integer in the sequence specifies the size of a dimension.  This argument is required.
fill:An instance of <object> specifying an initial value for each element of the array.  The default value is #f.

Superclasses

Subclasses

Functions on <array>

The class of arrays of rank one (i.e., exactly one dimension).
The common-dylan module.
Whenever possible, we have tried to keep the Dylan module pristine and unextended, preferring to add our extensions to separate modules or libraries.
The class of collections whose keys are consecutive integers starting from zero.
The class of integers.
The class of all Dylan objects.
The class of sequences that may be modified.
Returns the array element indicated by a set of indices.
Sets the array element indicated by a set of indices.
Returns the size of a specified dimension of an array.
Returns the dimensions of an array, as a sequence of integers.
Returns the number of dimensions of an array.
Returns the row-major index position of an array element.