From: Christoph Date: 2002-02-20T09:18:04+09:00 Subject: Re: hash as key in hash "Christoph" wrote in .... > Hashing the way you described is actually quite expensive - The following > implementation so not always optimal but gives you an indication what is > involved .... > kind of too longish implementation .... class MyHash < Hash def hash inject(length) {|sum,pair| sum+=pair.hash } end alias :eql? :== end /Christoph