I have two arrays
a = [:foo, :bar, :baz, :bof]
and
b = [\"hello\", \"world\", 1, 2]
I want
Just wanted to point out that there's a slightly cleaner way of doing this:
h = a.zip(b).to_h # => {:foo=>"hello", :bar=>"world", :baz=>1, :bof=>2}
Have to agree on the "I love Ruby" part though!