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 <ibc / aliax.net>