From: Ken Bloom Date: 2006-11-21T00:40:09+09:00 Subject: Re: Create array of hash values On Tue, 21 Nov 2006 00:33:33 +0900, David Lelong wrote: > Hi, > > I have a hash that contains the following keys/values: > > [#"4"}>, > #"8"}>] > > I want to create an array containing the contact_id values. What's an > easy way to do this? > > Thanks, > > David > irb(main):001:0> {1=>2,3=>4}.values => [2, 4] irb(main):002:0> {1=>2,3=>4}.keys => [1, 3] -- Ken Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/