&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 nth 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 ;