|
uniqueInsert
|
The uniqueInsert function destructively inserts the specified new object
{obj} into the Vector at the specified location. If the {obj}
argument does not exist in the Vector , the Vector is increased in size to
accommodate the {obj}. If the {obj} is already in the Vector,
no insertion is made. The index where the new {obj} was inserted or
(if already in the Vector) the index where the object was found will be returned
by the uniqueInsert function. When to use The uniqueInsert function is used whenever you want to install a new object
into a vector. Also the uniqueInsert function behaves like the
binaryInsert function except the target vector is not in sorted order.
(uniqueInsert vector obj) The index where the object was installed or where the object was found.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Example_FltVector_uniqueInsert_004
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 updated. Vector NumVector ObjVector IntVector FltVector ShortVector obj The object to be installed. Character String Symbol Vector BitVector ByteVector IntVector
FltVector ObjVector Structure Dictionary Directory ShortVector
Matrix NumMatrix Integer Float Number Complex
Returns:
Examples
Argument Types
Structure
Symbol
Integer
Character
String
Symbol
Vector
BitVector
ByteVector
IntVector
FltVector
ObjVector
Structure
Dictionary
Directory
ShortVector
Matrix
NumMatrix
Integer
Float
Number
Complex
How do I contact the AIS team?