From: Servando Garcia Date: 2007-03-20T20:53:09+09:00 Subject: Re: array to hash
David
    No Way that is to easy. My new question to you is how does this work. Where can I read the source code for this method

> Hi --
>
> On 3/20/07, Servando Garcia wrote:
>
>> Hello all
>> Is there a method to collect the items in an array into a hash
>>
>> I want to go from this X =[1,2,3,4,5,6] to this Y={1 =>2, 3 =>4,
>> 5 =>6}
>>
> Hash[*X]
>
>
> David