Turn a Ruby Array into a Hash March 3, 2013 Tweet Vote on HN Image by I always forget the syntax for this: ary = [:a, 1, :b, 2, :c, 3] Hash[*ary] # => { :a => 1, :b => 2, :c => 3 }