From: Robin Stocker Date: 2006-08-14T20:47:33+09:00 Subject: Re: Multiple assignment in a hash 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