On Fri, 25 Aug 2006, Martin DeMello wrote:

> On 8/24/06, ara.t.howard / noaa.gov <ara.t.howard / noaa.gov> wrote:
>>    HistoryHash = Alib::OrderedHash
>> 
>>    hh = HistoryHash.new
>>    hh[:one] = 1
>>    hh[:two] = 2
>>    hh[:one] = 3
>>    hh.each do |k, v| p k end
>> 
>>    harp:~ > ruby a.rb
>>    :one
>>    :two
>> 
>> because it's based on __insertion__ order.  if one wants a new insertion 
>> use:
>
> That depends on what you see yourself as inserting, though. If you
> take it as k=>v pairs, then you can see :one => 1 being replaced by
> :one => 3, which has then been inserted *after* :two => 2.

i'd say :one was updated or replaced, not inserted - sorry i wasn't clear.

it is arbitrary though...

-a
-- 
to foster inner awareness, introspection, and reasoning is more efficient than
meditation and prayer.
- h.h. the 14th dali lama