Functions provide the building blocks that you use to build your own custom indicator or scan. Functions are built-in operations that can be called from within your ChartScript. Most functions return data arrays of values but with ChartScript you don't have to worry about looping and indexing into the arrays, that is all handled internally by the scripting engine as described in the Formulas section.
See the Function Reference for a complete list of functions.