Function Library
A function library is a collection of callable private functions which can be used in decisions and other functions.
Overview
Function libraries are a list of named functions which can be called elsewhere. Each function has a name, return type, argument list and a body.
If the return type column is left blank, it will be inferred from the body. This feature will not work for recursive functions.
A simple example function library is shown below:
The library defines two functions, areBothOne and areBothTwo. Both functions return a boolean and take two arguments, intArg and strArg. Each function’s expression returns whether both arguments are equal to one or two, respectively.