Array.last_index_of

Array.last_index_of

Array.last_index_of

Function

Returns the index of the last occurrence of the specified value.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
valueAnyNoNoneThe value to find.

Return value

TypeDescription
IntReturns the subscript if found; returns -1 if not found.

Example

Notes

  • Comparisons use the BT value equality rule.