# File lib/core/facets/array/nonuniq.rb, line 38 def duplicates(min=2) h = Hash.new( 0 ) each {|i| h[i] += 1 } h.delete_if{|_,v| v < min}.keys end