This is an old version, view current version.
9.1 Function-definition block
User-defined functions appear in a special function-definition block before all of the other program blocks.
functions {
// ... function declarations and definitions ...
}data {
// ...
Function definitions and declarations may appear in any order. Forward declarations are allowed but not required.