From: ts Date: 2006-06-20T23:27:34+09:00 Subject: Re: uniq() Oddity >>>>> "J" == James Edward Gray writes: J> p a[0] == a[1] #=> true J> # why does this next call do nothing? J> p a.uniq #=> [{:foo=>:bar}, {:foo=>:bar}] #uniq first create an hash : this mean that it don't use #== for the comparison. moulon% ruby -e 'a = [{:f =>:b}, {:f => :b}]; p a[0].eql?(a[1]); p a[0]==a[1]' false true moulon% Guy Decoux