lst.find { |e| e == i }
next(x for x in seq if predicate(x))
const array1 = [5, 12, 8, 130, 44]; const found = array1.find((element) => element > 10); // 12