counter ( variable -- n )


Vocabulary
namespaces

Inputs
variablea variable, by convention a symbol


Outputs
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