# Array.find_last_index

## 功能

从右向左返回第一个让回调结果为真的元素下标。

## 语法

```bt
array.find_last_index(callback)
```

## 参数

| 参数 | 类型 | 必填 | 默认值 | 说明 |
| ------ | ------ | ------ | ------ | ------ |
| callback | Fn | 否 | Empty | 回调签名为 fn(value, index, current)。 |

## 返回值

| 类型 | 说明 |
| ------ | ------ |
| Int | 找到时返回下标；未找到返回 -1。 |

## 示例

```bt
items = [1, 2, 3, 4]
result = items.find_last_index(fn(value) { value < 4 })

// 输出：2
print result
```

## 注意事项

- 从右到左查找。
