func
The function class for Cheddar
Arguments:
name | type | description |
| 2D array | (described below) this matrix described the arguments for the function. In the form of |
| function | (described below) the function body |
arguments matrix:
name | type | default | description |
|
| n/a | If provided, the argument is required to be of the given type |
|
| n/a | If provided and the argument is not provided, it will be set to this rather than throwing an error. |
| bool |
| If provided, this and the following arguments will be combined into a |
| bool |
| If true, the argument will be |
function body:
argument | description |
first | This is the function's scope as a |
second | This is a function which returns a variable's value, given a variable name. |
Usage:
-> (a, b = 0) a + b
, with api:
Internal Usage
Execution:
scope
will be set to self
variable, if none, set to null
.
Arguments:
the 2D matrix representing the arguments the function is requesting.
Last updated