Ruby - Methods
You want a method that returns the first even number from an array or nil if none found. Which code correctly uses explicit return to stop early?
def first_even(numbers)
numbers.each do |n|
if n.even?
return n
end
end
nil
end