Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

:AREF and :SETF

source files: x01v.[ch] xflv.[ch] x32v.[ch] xcsy.[ch] xgrl.[ch]

SYNTAX

(SEND <ary> :AREF       <fix> ... ) 
(SEND <ary> :SETF <val> <fix> ... ) 

DESCRIPTION

Fetch/store the ith (or i,jth or whatever) element from the given array or graphics relation. There must be one index supplied for each dimension in the array. The lowest legal index value is always zero.

The return value will be a float for float-arrays, an int for int32 and bit arrays. For graphics relations, the return value will be a list '(:NAME1 val1 :NAME2 val2 ... ) with one value for each array in the graphics relation.

For :SETF, <val> should have the type of the return value of the corresponding :AREF. If <val> is NIL, the default value for array elements will be stored; the default value is zero unless changed by :INITIAL-ELEMENT;


Go to the first, previous, next, last section, table of contents.