SyntaxFix
Write A Post
Hire A Developer
Questions
Either I don't understand your question, or Enumerable#find is the thing you were looking for.