Overview Module Function Class Tea 3.1.0 Reference Documentation
© 2002 PDM&FC

Function ++

++ symbol

Modifies the contents of a variable containing a numeric object by adding one to its previous value.

Parameters:
symbol - A symbol object identifying a variable in the current context. The variable must contain a numeric object.
Returns:
The new value of the variable.

Modifies the contents of the variable identified by symbol by incrementing by one the value it had previously stored. The variable binded to symbol is expected to contain a numeric object.

The ++ is a short way to write

    set! symbol [+ $symbol 1]


Overview Module Function Class Tea 3.1.0 Reference Documentation
© 2002 PDM&FC
Report a bug or request new features
© 2002