A FunctionList is a function that composes multiple functions into one. This allows allow to deal transparently with several functions as if they were one and to append new functions at a later point. The functions are evaluated in the order they have in the FunctionList's array, which is by default the order in which they have been added to it.
See the Functions help file for a basic introduction.
create a new instance.
functions |
An array of functions or objects |
Set/get the FunctionList's array. New functions can be added to the array directly, e.g.
This message is used to be able to add to an Object, to a Function, or to a FunctionList. nil.addFunc
returns a function, if only one function is passed in the argument. function.addFunc
then returns a FunctionList.
remove a function from the list.
the last function when only one function is left, or nil
when the last function was removed.
addFunc
and removeFunc
are implemented for Nil, Object and FunctionList