Class: ComposedFunction

ComposedFunction(operator, …operands)

A function that is defined as the composition of other functions.

Constructor

new ComposedFunction(operator, …operands)

Creates a new instance of the function.
Parameters:
Name Type Attributes Description
operator The top-level operator this function composes
operands <repeatable>
The operands of this function. These operands can themselves be other functions.
Source:

Extends

Members

arity

The input arity of the function
Overrides:
Source:

Methods

compute(arguments)

Computes the return value of the function from its input arguments.
Parameters:
Name Type Description
arguments A variable number of Values, whose number must match the input arity of the function.
Overrides:
Source:
Returns:
The resulting Value

evaluate(arguments)

Computes the return value of the function from its provided input arguments.
Parameters:
Name Type Description
arguments A variable number of input arguments
Overrides:
Source:
Returns:
The return value of the function

getArity()

Gets the arity of the function.
Overrides:
Source:
Returns:
The arity

setTo(variable, value)

Binds a variable name to a specific value.
Parameters:
Name Type Description
variable The name of the variable
value The value to bind this variable to
Overrides:
Source: