Up: Functions and Constructs
Previous: Defining New Functions (function)
You can bind a variable at top-level using the = operator.
The syntax is:
For example, a = 211; will bind the variable a to the
value 211. The variable can now either be referenced at top
level, or can be referenced inside of any function. For example, the
definition would define a function
that adds 211 to its input. Such top-level binding is mostly useful
for saving temporary results at top-level, and for defining constants.
The variable pi is bound at top level to the value of .
Tue Nov 28 13:57:00 EST 1995