# Array.last_index_of ## Function Returns the index of the last occurrence of the specified value. ## Syntax ```bt array.last_index_of(value) ``` ## Parameters | Parameters | Type | Required | Default value | Description | | ------ | ------ | ------ | ------ | ------ | | value | Any | No | None | The value to find. | ## Return value | Type | Description | | ------ | ------ | | Int | Returns the subscript if found; returns -1 if not found. | ## Example ```bt items = ['a', 'b', 'a'] result = items.last_index_of('a') // Output: 2 print result ``` ## Notes - Comparisons use the BT value equality rule.