Function

A function is a type of item on the AQL stack that itself is an AQL query.

These are used with looping functions such as EACH and FOR to repeatedly call the enclosed functions.

Functions are written between square brackets, such as the following…

('Alpha', 'Beta', 'Gamma') [ NAME ] EACH

The above code is redundant, but will name the current stack 'Alpha', 'Beta' and finally 'Gamma'.