On Aug 14, 2006, at 7:47 AM, Robin Stocker wrote:

> Logan Capaldo wrote:
>> keys = %w(one two three)
>> hash = Hash[ *keys.zip(Array.new(keys.length){"A"}).flatten ]
>
> Why complicated when you could do it easier and clearer:
>
> hash = {}
> %w(one two three).each{ |k| hash[k] = "A" }
>
>   Robin
>
I dunno. Didn't think of it at the time.