ToC DocOverview CGDoc RelNotes Index PermutedIndex
Allegro CL
Home Previous Up Next Table of Contents Index
  ANSI Common Lisp   15 Arrays   15.2 Dictionary of Arrays

15.2.22 row-major-aref Accessor

row-major-aref array index    element

(setf (row-major-aref array index) new-element)

Arguments and Values:
array - an array.

index - a valid array row-major index for the array.

element, new-element - an object.

Considers array as a vector by viewing its elements in row-major order, and returns the element of that vector which is referred to by the given index.

row-major-aref is valid for use with setf.

See Also:
aref, array-row-major-index

 (row-major-aref array index) ==
   (aref (make-array (array-total-size array)
                     :displaced-to array
                     :element-type (array-element-type array))

 (aref array i1 i2 ...) ==
     (row-major-aref array (array-row-major-index array i1 i2))

Allegro CL Implementation Details:

Home Previous Up Next Table of Contents Index
© Franz Inc. 1998-2015 - File last updated 03-23-2015