List.index_of
index_ofconditionstart
Group: Values
Documentation
Returns the index of the element in the list. Returns Nothing if the element is not found.
Arguments
condition
: Either the element to search for, aFilter_Condition
or a predicate function to test each element.start
: The index to start searching from. If the index is negative, it is counted from the end of the list.
Examples
Finding a first element of the vector that is larger than 3.
[1, 2, 3, 4, 5].find (> 3)