找到匹配條件的第一個元素

def lst = [10, 20, 30, 40]

lst.find { it > 25 } // 30. Note: it returns a single value