Hello Everyone,
I am new to Ruby, but I like how many of the functions one would use
in programming are baked right in. Here is my problem, I have an array
with objects that is ordered by a particular attribute, lets call it
“age”.
What I seek to do is to iterate through the array, and return the object
that passes a certain test function. Lets say the first object with an
age greater than 35. Is there a function that will already do this, or
do I have to roll my own ?