|
resize
|
The resize function changes a Dictionary object {dict} size to
the specified size {size}. If the Dictionary 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 dict size) Returns the updated dictionary
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 dict The Dictionary to be resized Dictionary 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?