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