change ( variable quot -- )
Factor handbook > The language > Dynamic variables > Changing variable values

Prev:dec ( variable -- )
Next:change-global ( variable quot -- )


Vocabulary
namespaces

Inputs and outputs
variablea variable, by convention a symbol
quota quotation with stack effect ( old -- new )


Word description
Applies the quotation to the old value of the variable, and assigns the resulting value to the variable.

Side effects
Modifies variable

See also
change-at, change-nth

Definition