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

Prev:array-nth ( n array -- elt )


Vocabulary
sequences.private

Inputs and outputs
eltan object
na non-negative fixnum
arrayan array


Word description
Low-level array element mutator.

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 set-nth instead.


Definition