|
insert
|
The insert function destructively inserts the specified object into the Vector
or any Vector subtypes
at the specified index location. When to use The insert function should be used when you want to insert a new object into
an existing Vector in a specific location in the Vector. The insert function
will always insert, even though the object already exists, whereas the uniqueInsert
function will not insert if the object already exists. If the specified index is
already occupied, then that object and all remaining objects to the right will be
shifted to the right to make room for the new object.
(insert vector index obj) The modified Vector.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Example_ShortVector_insert_007
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 modified. Vector FltVector ShortVector IntVector NumVector ObjVector index The location in the vector to install the new value. Integer obj The new object to insert. Character String Symbol Vector BitVector ByteVector IntVector
FltVector ObjVector Structure Dictionary Directory
Matrix NumMatrix Integer Float Number Complex
Returns:
Examples
Argument Types
Structure
Dictionary
Directory
Vector
Matrix
FltVector
ShortVector
IntVector
NumVector
ObjVector
Integer
String
Text
Symbol
NumMatrix
How do I contact the AIS team?