Class: Argument

Argument(index)

A function that acts as an argument to a composed function.

Constructor

new Argument(index)

Creates a new instance of the function.
Parameters:
Name Type Description
index The position of the argument in the composed function
Source:

Extends

Methods

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: