counter ( variable -- n )


Vocabulary
namespaces

Inputs and outputs
variablea variable, by convention a symbol
nan integer


Word description
Increments the value of the variable by 1, and returns its new value.

Notes
This word is useful for generating (somewhat) unique identifiers. For example, the gensym word uses it.

Side effects
Modifies variable

Definition