|
resize
|
The resize function changes a Vector object {vector} size to the
specified size {size}. If the Vector is enlarged the new spaces are filled
with #void. If the Vector is downsized, the trailing values are dropped.
When to use The resize function can be used to downsize or enlarge a dictionary, directory
structure, vector or matrix in one
step. It is more time efficient if the target size is known from the start, than
expanding or contracting the dictionary, directory
structure, vector or matrix one binding at a time.
(resize vector size) Returns the updated vector.
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 vector The Vector to be resized Vector FltVector IntVector NumVector ObjVector BitVector ShortVector size The target size (i.e. the number of bindings). Integer
Returns:
Examples
Argument Types
Structure
Dictionary
Directory
Vector
Integer
NumMatrix
Matrix
ShortVector
FltVector
IntVector
NumVector
ObjVector
BitVector
How do I contact the AIS team?