# File lib/facets/core/enumerable/uniq_by.rb, line 12 def uniq_by #:yield: h = {}; inject([]) {|a,x| h[yield(x)] ||= a << x} end