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