FindValue
Returns the index for the first occurrence of the provided value. If the
value cannot be located, -1 will be returned.
native int FindValue(any item, int block = 0, int start = -1, bool reverse = false)
Parameters
any item
Value to search for.
int block
Optionally which block to search in.
int start
Index to start searching from (exclusive), or -1 for direction default.
Valid numbers are in the interval [-1..Length].
bool reverse
Whether the search direction should be reversed.
Return Value
int Array index, or -1 on failure.Error
Invalid block, or invalid start index.