Am I missing something in the Array documentation? I have an array which contains up to one object satisfying a certain criterion. I\'d like to efficiently find that objec
Guess you just missed the find method in the docs:
my_array.find {|e| e.satisfies_condition? }