From: "Aleksi Niemelä" Date: 2001-01-09T22:01:15+09:00 Subject: [ruby-talk:8921] Re: Hash#index !==> Hash#indexes Guy noted: > A> a = list.collect { |obj| h.index(obj) } > > Hash#index return the key corresponding to obj > > A> b = h.indexes(*list) > > Hash#indexes ( #indices ) return all values associated with > the keys given in arguments. Guy, yes, I know that. I was pointing the difference Hash#index return the key Hash#indexes return the values and noting that I'm not expecting it. Do you? - Aleksi