From: Alex Young Date: 2007-04-13T00:56:33+09:00 Subject: Re: distinct Jean-S�bastien wrote: > hello, > > a little question... how to get distinct values from an hash? > > ex: > hash = {"a"=>100, "b"=>200, "d"=>100, "d"=>200} > ==> hash_with_distinct_values = [100, 200] hash.values.uniq is the simplest. -- Alex