Variables

redefine

Assign a new value to an existing variable.

Syntax

redefine <name> is <value>;

How she behaves

  • The variable must already exist from define.
  • The new value must match the original type.
  • Array slots can be redefined: redefine history[0] is 100;

Example

define num x is 0;
redefine x is x + 1;

See also