From: Paul Harrington Date: 2010-02-26T07:51:19+09:00 Subject: Re: Array index question David Springer wrote: > after some inspiration from Luc I was able to come up with this: > > textlist = ["Apple", "Orange", "Lemon", "Grape", "Orange", > > (0..textlist.length-1).select {|i| textlist[i] == "Orange"}[1] Second day with Ruby, huh... -- Posted via http://www.ruby-forum.com/.