I want to use each item in the array as values in a hash with the same key "name".
people = ["Bob", "Mary", "Sarah", "Tim", "Maggie"]
I want to get:
{ name: => "Bob", name: => "Mary", name: => "Sarah", name: => "Tim", name: => "Maggie"}
When I do Hash[people.map {|v| ["name", v]}]
or
people.map{|v| hash['name'] = v}
it zips only the last item so I get this as a result :
{"name"=>"Maggie"}