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.

:POSITION

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

SYNTAX

(SEND <ary> :POSITION <value>)

DESCRIPTION

Returns the row-major index of the given <value> within the given <ary>, if present, else NIL.

May be used, for example, to find the slot containing the minimum value in the array, by first using the :min message to find the minimum value, then the :position message to find its index.


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