Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
A function definition looks like:
function name ( formal1, formal2, ... ) bodyThe keyword function can be abbreviated func. Each part of this definition is discussed below.
Function definitions are expressions; they can occur anywhere an expression can. In particular because expressions are also statements, a function definition can also occur anywhere a statement occurs.