turn arrays to hash
h = Hash[a.zip b] h = a.zip(b).to_h h = [a, b].transpose.to_h h = Hash[ [a, b].transpose ]