On Tue, 2005-01-25 at 17:10 +0900, Robert Klemme wrote:

> >> h = {"a"=>"111","b"=>"222"}
> => {"a"=>"111", "b"=>"222"}
> >> h.inject([]){|a,(k,v)| a << k << v}
> => ["a", "111", "b", "222"]
> 

Cool!  I was wondering how to convert a hash to an array, dropping the
keys in the process.  I see that inject does the job nicely.  Is there
another way too?

>> h.inject([]){|a, (k, v)| a << v}
=> ["111", "222"]

Cheers,

Richard.