|
apply
|
The apply Function invokes a Function using the structure values as arguments.
The function is invoked and resulting value is returned. This is the same as
(function ...arglist...).
The apply function is useful when the arguments to a function are stored in a structure . It shortens the amount of code to use because the apply function eliminates the need to reference each structure element from the structure to pass as an argument to the function.
(apply function struct) The resulting value after the function is evaluated.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types function any valid function name struct A Structure containing values and are valid arguments to the named function. Structure
Returns:
Examples
Argument Types
Structure
Vector
Matrix
Symbol
Pair
List
FltVector
IntVector
ShortVector
NumVector
CpxVector
BitVector
How do I contact the AIS team?