A function is a procedure that can be called, which returns a value. Functions can optionally take parameters.
There are three types of functions in ADRIFT. These are:
- Item Functions - Every item in ADRIFT can be referred to by it's key. If you type a key (or a function that resolves to a key) then you can access all the properties of that item, in addition to special functions such as listing and counting etc.
- General Functions - These are traditional functions that are called with a given syntax and sometimes with parameters.