&put ( value n -- )
Factor handbook » Developer tools » The inspector

Prev:&at ( n -- )
Next:&add ( value key -- )


Vocabulary
inspector

Inputs
valuean object
na non-negative integer


Outputs
None

Word description
Sets the n th slot of the current object to the given value.

Errors
Throws an error if the object does not support this operation.

See also
&back, &at, &add, &delete

Definition

: &put ( value n -- ) key@ &add ;