# Pastebin rpJ8DaHd def something [1,2,3,4,5].to_a.map do |d| if (d.even?) next nil end d end end p something