From: "Iñaki Baz Castillo" Date: 2010-01-21T22:59:49+09:00 Subject: Re: Unexpected Hash#first return under Ruby1.9 El Jueves, 21 de Enero de 2010, Andrea C. Granata escribió: > >> irb(main):007:0> h.first[1] > >> => "AAA" > > > > Sure. I just expected Hash#first returning the first valule rather than > > the first [key,value] entry. > > Hash#first returns the first element. You can access first value with > > h.values.first Thanks, this is "cooler" than doing h.first[1]. :) -- Iñaki Baz Castillo