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


structure StringMap = BinaryMapFn (struct
                                     type ord_key = string
                                     val compare = String.compare
                                   end);
 
val keys = [ "foo", "bar", "baz" ]
and vals = [ 16384, 32768, 65536 ]
and myMap = StringMap.empty;
 
val myMap = foldl StringMap.insert' myMap (ListPair.zipEq (keys, vals));