From: James Edward Gray II Date: 2006-11-21T00:43:31+09:00 Subject: Re: Create array of hash values On Nov 20, 2006, at 9:39 AM, Peter Szinek wrote: > result = x.inject([]) {|a,h| a << h.values[0]; a} Any time you see inject() used as it is above, the intention was really map(): result = x.map { |h| h.values[0] } Same thing. James Edward Gray II