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