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


zip = { keys, values |
	h = [:]
	keys.each_with_index { key, index |
		h[key] = values[index]
	}
 
	h
}
 
p zip [1 2 3] [:a :b :c]  #Prints [1: a, 2: b, 3: c]