Functions


Like most programming languages, Lua supports the ability to add new functionality by implementing functions. At a high-level, functions are "callable units" of code that can accept 0 or more parameters, perform some operations on them, then return 0 or more results.

We will look at functions in more detail in the Functions chapter.