BT编程语言文档
find_last_index
返回数组中最后一个满足测试函数的元素的索引语法 Array.find_last_index(callback:Fn(value:Any, key:Int, current:Any))
arr = [1, 2, 3, 4] println arr.find_last_index(fn(v){ v > 2 }) // 输出:3语法 Array.find_last_index(callback:Fn(value:Any, key:Int, current:Any))
arr = [1, 2, 3, 4] println arr.find_last_index(fn(v){ v > 2 }) // 输出:3