Select makes sense. But can someone explain .detect to me? I don\'t understand these data.
>> [1,2,3,4,5,6,7].detect { |x| x.between?(3,4) } => 3 >&g
The ruby-docs are a great ressource when you want to learn about the methods.
Enumerable#detect