From: pere.noel@... (=?ISO-8859-1?Q?Une_b=E9vue?=) Date: 2006-01-05T17:42:59+09:00 Subject: Re: Question on iterating a hash Kevin Olbrich wrote: > result = h.keys.select {|k| h[k] == 1} i think it's more : h.keys.select {|k| h[k] == "1"} if h is really : h = Hash[*%w{1 0 3 1 45 1 101 0}] that's to say String not Fixnum )) -- une b�vue