Return a mapping with indices from 'arr1' and values from 'arr2'.
arr1 will index arr2, arr1 will index arr2, etc. If the
arrays are of unequal size, the mapping will only contain as much
elements as are in the smallest array.
Don't use any duplicate indexes if you don't know what will happen.