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