|
apply
|
The apply Function invokes a Function using the Vector values as arguments.
The function is invoked and resulting value is returned. This is the same as
(function ...arglist...). When to use The apply function is useful when the arguments to a function are stored
in a Vector. It shortens the amount of code to use because the apply
function eliminates the need to reference each Vector element from the Vector
to pass as an argument to the function.
(apply function vector) 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 vector A Vector containing values and are valid arguments to the named function. Vector FltVector IntVector NumVector BitVector ShortVector
Returns:
Examples
Argument Types
Structure
Vector
Matrix
Symbol
Pair
List
FltVector
IntVector
ShortVector
NumVector
CpxVector
BitVector
How do I contact the AIS team?