From: ts Date: 2002-07-14T21:14:14+09:00 Subject: Re: hey! where's #count? >>>>> "C" == Christoph writes: C> module Enumerable C> def uniq C> hsh = {} C> each {|e| hsh[e] = true } C> hsh.keys C> end C> end Do you expect this ? pigeon% cat b.rb #!/usr/bin/ruby module Enumerable def uniq hsh = {} each {|e| hsh[e] = true } hsh.keys end end a = {"a" => 12, 12 => "a"} b = a.uniq p b, b.type pigeon% pigeon% b.rb [[12, "a"], ["a", 12]] Array pigeon% Guy Decoux