Constructor
new DefFunc(f)
Parameters:
Name | Type | Description |
---|---|---|
f |
function | The function to be computed. The function will be called like f(dependencies, params), where those parameters are specified by the creation info |
- Source:
Methods
compute(createInfo)
Computes the result of this.f on the given arguments
Parameters:
Name | Type | Description |
---|---|---|
createInfo |
CreateInfo | The creation info |
- Source:
Returns:
The result of this.f(dependencies, params)
(static) from(dependencies, params, ignoreInvalids) → {CreateInfo}
Defines the signature of a function
Parameters:
Name | Type | Default | Description |
---|---|---|---|
dependencies |
Object | Array | Either the indices or values of the objects this function depends on | |
params |
Object | Array | Additional parameters | |
ignoreInvalids |
Boolean | false | If true, this function is called even if any inputs are INVALID |
- Source:
Returns:
The creation info
- Type
- CreateInfo