yurko
5/6/2016 - 1:58 PM

turn arrays to hash

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 ]