|
insert
|
The insert function destructively inserts the specified object into
the NumMatrix at the specified index location.
Note: Returns an error message if the NumMatrix is not of rank one.
The insert function should be used when you want to insert a new object into an existing NumMatrix in a specific location in the NumMatrix. 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 nummatrix index obj) The modified NumMatrix.
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 nummatrix The NumMatrix to be modified. NumMatrix index The location in the NumMatrix 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?