From: Blake Miller Date: 2006-12-02T04:34:17+09:00 Subject: Re: Simple iteration in a function problem >> >> See the docs for Enumerable#detect about handling what's returned if >> nothing is found. > > I don't know where "detect" comes from (@ys is an array, and it doesn't > seem to be a method of Array)? however, I tried that and the result is > null, but I know for certain that the id being searched for does match > an element in the @ys array (because I wrote a function to print out the > ids in @ys) Sorry, missed that "Enumerable" -- Posted via http://www.ruby-forum.com/.