From: ts Date: 2001-06-23T00:00:05+09:00 Subject: [ruby-talk:16770] Re: uniq and "equivalence" >>>>> "H" == Hugh Sasse Staff Elec Eng writes: >> Array#uniq make first an hash, then delete the elements. H> is that Object#hash() or Hash.new()? Hash::new H> Object#hash must return a fixnum such that H> a.eql?(b) means a.hash = b.hash. That is a pretty tall H> order for arrays of floats. Has anyone any suggestions H> on how to proceed? Define a #hash method for your class Trapezoidal_fitness, actually because it's not defined it use the default #hash function which is the id of the object. Guy Decoux