|
new
|
The new function creates an instance of a specified Data Type and
initializes the Object of the specified Data Type with a value.
When to use Use the new function to create a new vector object and initialize it
with some values.
(new Vector: size) (new Vector: subtype: size ) (new Vector: subtype: size initialValues ) A Vector Object.
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: Mandatory keyword Symbol subtype: An optional argument. If present it must be one of the following types:
Word:
Bit:
Integer:
Float:
Number:
Short:
Object:
Pcode:
Short:
If omitted, then the default will be a word vector. Symbol size An integer indicating how many elements in the vector. Integer initialValues An optional argument. If present, it must be a list of initial values, each
value separated by a space. If no initial values are specified, the vector
is filled with zeros. If too few initial values are specified, the vector
is filled with repeating patterns of initial values. Character String Symbol Vector BitVector ByteVector IntVector
FltVector ObjVector Structure Dictionary Directory
Matrix NumMatrix Integer Float Number Complex Boolean
Returns:
Examples
Argument Types
How do I contact the AIS team?