|
inside
|
The inside function searches the Vector argument {vector} for the match
of the search object argument {obj} and returns the index where {obj}
was found. If the {obj} was not found, false is returned. The inside
function uses the isIdentical predicate. When to use The inside Function is used to find an object {obj} in a Vector
{vector}. Since the inside function returns the location of the
{obj}, the inside function makes it convenient to perform some operation
on the {obj} . An alternate function, the isInside function, is used
when a Boolean value of either true or false is sufficient.
(inside obj vector) Returns false if the object is not present. If the object is present, returns an integer representing the
index into the vector where the object was found.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Example_ShortVector_inside_006
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 obj The search object. Character String Symbol Vector BitVector ByteVector IntVector
FltVector ObjVector Structure Dictionary Directory
Matrix NumMatrix Integer Float Number Complex vector The Vector to be searched. Vector BitVector ShortVector IntVector NumVector
Returns:
Examples
Argument Types
How do I contact the AIS team?