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

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


Vocabulary
namespaces

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


Outputs
None

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-at, change-nth

Definition