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