I have an array of hashes, and I want the unique values out of it. Calling Array.uniq doesn\'t give me what I expect.
Array.uniq
a = [{:a => 1},{:a =&g
Ruby 1.8.7+ will return just what you have expected:
[{:a=>1}, {:a=>2}, {:a=>1}].uniq #=> [{:a=>1}, {:a=>2}]