2008/1/7, Bil Kleb <Bil.Kleb / nasa.gov>:
> I'm looking for an elegant way to do the following:
> (...)

Bil, this makes the test pass:

  class Array
    def consolidate
      Hash[*flatten].sort
    end
  end

Regards,
Pit