From: Robert Klemme Date: 2007-08-30T23:28:35+09:00 Subject: Re: How to make an array of hashes to a single array with all the values of these hashes ? 2007/8/29, yermej@gmail.com : > On Aug 29, 2:53 pm, dima wrote: > > > The beauty is that you can do the same stuff in so many different > > ways ;-) > > I'll offer up an inject solution for this one: > > my_new_array = myvalue.inject([]) {|arr, h| arr + h.values} That's already pretty good (you used #inject ;-)) but this one is slightly more efficient: my_new_array = myvalue.inject([]) {|arr, h| arr.concat h.values} Kind regards robert