Task

Using two Arrays of equal length, create a Hash object
where the elements from one array (the keys) are linked
to the elements of the other (the values)



Related task

   Associative arrays/Creation


 
keys = ['hal',666,[1,2,3]]
vals = ['ibm','devil',123]
 
hash = Hash[keys.zip(vals)]
 
p hash  # => {"hal"=>"ibm", 666=>"devil", [1, 2, 3]=>123}
 
#retrieve the value linked to the key [1,2,3]
puts hash[ [1,2,3] ]  # => 123
 