From: Gavin Sinclair Date: 2004-07-05T16:07:19+09:00 Subject: Re: Transforming... Meino wrote: > In my program there is a hash of this form > > a={ "" => [,,], > "" => [,,], > "" => [,,] > } > > I am looking for a short and handy way to produce an array out of > this, which looks like: > > b=[[,,],[,,],[,,]] > > without iterating over the hash. I presume you mean you just want an array of the *values* in the hash? b = a.values If you want the values sorted according to the order of the keys: b = a.keys.sort.map { |k| a[k] } Cheers, Gavin