Blogs about: Eigenclass
Featured Blog
Uniquify an array of hashes in Ruby
Array#uniq is a handy Ruby method that produces an array of distinct elements. So, for example, [1,2,3,3,3].uniq produces [1,2,3]. However, this fails on an array of hashes. For example, [{}, {}].uniq… more »
Mike Burns, Coder
Uniquify an array of hashes in Ruby
Mike Burns wrote 6 months ago: Array#uniq is a handy Ruby method that produces an array of distinct elements. So, for example, [1,2 … more »
