From: Jonah Jameson Date: 2012-02-11T12:25:52+09:00 Subject: Return First Value that Passes 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 ? Any help is greatly appreciated. -- Posted via http://www.ruby-forum.com/.