From: "Peña, Botp" Date: 2008-09-18T18:49:55+09:00 Subject: Re: Preserve insert order in a Hash From: Me Me [mailto:emanuelef@tiscali.it] # I would like to know if it's possible to insert values in a Hash and # then extract all of them in the same insertion order. only in ruby 1.9 C:\ruby1.9\bin>irb.bat > h={} => {} > h[1]=1 => 1 > h[2]=1 => 1 > h[3]=1 => 1 > h => {1=>1, 2=>1, 3=>1} > h[1.5]=1 => 1 > h => {1=>1, 2=>1, 3=>1, 1.5=>1} > h[0]=1 => 1 > h => {1=>1, 2=>1, 3=>1, 1.5=>1, 0=>1} > RUBY_VERSION => "1.9.0"