array-nth ( n array -- elt )
Factor handbook » The language » Collections » Arrays » Unsafe array operations

Next:set-array-nth ( elt n array -- )


Vocabulary
sequences.private

Inputs
na non-negative fixnum
arrayan array


Outputs
eltan object


Word description
Low-level array element accessor.

Warning
This word is in the sequences.private vocabulary because it is unsafe. It does not check types or array bounds, and improper use can corrupt memory. User code must use nth instead.


Definition