|
resize
|
The resize function changes a Directory object {dir} size to
the specified size {size}. If the Directory is expanded, the new spaces are
filled with #void. If the object is downsized, the trailing values are dropped.
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 dir size) Returns the updated directory
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 dir The Directory to be resized Directory 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?