member
|
The member 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 member
function uses the isEqual predicate. The member function takes a key as an argument and a Structure as a second argument and returns the index where the key was found. If the key was not found,
the member function returns false. The member
function uses the isEqual predicate. The member function takes a key as an argument and a Dictionary as a second argument and returns the index where the key was found. If the key was not found,
the member function returns false. The member
function uses the isEqual predicate. The member function takes a key as an argument and a
Directory as a second argument and returns the index where the key was found. If the key was not found,
the member function returns false. The member
function uses the isEqual predicate. The member function searches the Matrix argument {Matrix} 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 member
function uses the isEqual predicate.
The member function searches the NumMatrix argument {NumMatrix} 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 member
function uses the isEqual predicate.
The member function searches the List argument {list} 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 member
function uses the isEqual predicate.
Usage Use the member function if you want to locate the position of a certain member
(object) in a Vector. If you just want to know if a member is in the Vector but
do not care where it is located if it is found, use the isMember function,
which returns a Boolean true or false.
Use the member function if you want to locate the position of a certain member
(key) in a Structure object. If you just want to know if a member is
in the Structure but
do not care where it is located if it is found, use the isMember function,
which returns a Boolean true or false.
Use the member function if you want to locate the position of a certain member
(key) in a Dictionary object. If you just want to know if a member is
in the Dictionary but
do not care where it is located if it is found, use the isMember function,
which returns a Boolean true or false.
Use the member function if you want to locate the position of a certain member
(key) in a Directory object. If you just want to know if a member is
in the Directory but
do not care where it is located if it is found, use the isMember function,
which returns a Boolean true or false.
Use the member function if you want to locate the position of a certain member
(object) in a Matrix. If you just want to know if a member is in the Matrix but
do not care where it is located if it is found, use the isMember function,
which returns a Boolean true or false.
Use the member function if you want to locate the position of a certain member
(object) in a NumMatrix. If you just want to know if a member is in the NumMatrix but
do not care where it is located if it is found, use the isMember function,
which returns a Boolean true or false.
The member function is used to find an object {obj} in a List {list}.
Since the member function returns the location of the {obj},
the member function makes it convenient to perform some operation on the {obj} .
An alternate function, the isMember function, is used when a Boolean value of
either true or false is sufficient.
Structure
Dictionary
Directory
Matrix
NumMatrix
List
Structure
Dictionary
Directory
Matrix
NumMatrix
List
(member obj vector) Returns the index of the member if it is found, otherwise it returns false.
(member key struct) Returns the index of the member if it is found, otherwise it returns false.
(member key dictionary) Returns the index of the member if it is found, otherwise it returns false.
(member key directory) Returns the index of the member if it is found, otherwise it returns false.
(member obj matrix) Returns false if the object is not present. Returns an integer representing the index
into the Matrix where the object was found.
(member obj nummatrix) Returns false if the object is not present. Returns an integer representing the index
into the NumMatrix where the object was found.
(member obj list) Returns false if the object is not present. Returns an integer representing the index
into the List where the object was found.
Expression:
Arguments
Name
Type
Description Argument: obj Character String Symbol Vector BitVector ByteVector IntVector
FltVector ObjVector Structure Dictionary Directory
Matrix NumMatrix Integer Float Number Complex Boolean
The object you wish to locate. Argument: vector Vector ShortVector NumVector ObjVector BitVector
The vector to be searched
Returns:
Expression:
Arguments
Name
Type
Description Argument: key Symbol
The key(member) you wish to locate. Argument: struct Structure
The target structure.
Returns:
Expression:
Arguments
Name
Type
Description Argument: key Symbol
The key(member) you wish to locate. Argument: dictionary Dictionary
The target dictionary.
Returns:
Expression:
Arguments
Name
Type
Description Argument: key Symbol
The key(member) you wish to locate. Argument: directory Directory
The target directory.
Returns:
Expression:
Arguments
Name
Type
Description Argument: obj Character String Symbol Vector BitVector ByteVector IntVector
FltVector ObjVector Structure Dictionary Directory
Matrix NumMatrix Integer Float Number Complex Boolean
The object you wish to locate. Argument: matrix Matrix
The matrix to be searched
Returns:
Expression:
Arguments
Name
Type
Description Argument: obj Character String Symbol Vector BitVector ByteVector IntVector
FltVector ObjVector Structure Dictionary Directory
Matrix NumMatrix Integer Float Number Complex Boolean
The object you wish to locate. Argument: nummatrix NumMatrix
The nummatrix to be searched
Returns:
Expression:
Arguments
Name
Type
Description Argument: obj Character String Symbol Vector BitVector ByteVector IntVector
FltVector ObjVector Structure Dictionary Directory
Matrix NumMatrix Integer Float Number Complex Boolean
The object you wish to locate. Argument: list List
The List to be searched
Returns:
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.
Analytic Information Server (AIS)AIS Component Systems
|