The call method invokes the function object, and returns it's result. If not enough parameters are supplied, then an error is raised.


Invokes this function with no parameters.

player = getPlayer()
event = def()

// ... some time later ...

.call( parameters )

Calls this function with the Array of parameters provided. Note that the parameters must be provided inside of an Array.

adder = def( a, b, c )
    return a + b + c
end [ 1, 2, 3 ] )

Null, or an empty array, can also be passed in to denote no parameters.