title: How to build a Ruby hash out of two equally-sized arrays?
body: <p>I have two arrays</p>
  
  <pre><code>a = [:foo, :bar, :baz, :bof]
  </code></pre>
  
  <p>and</p>
  
  <pre><code>b = ["hello", "world", 1, 2]
  </code></pre>
  
  <p>I want</p>
  
  <pre><code>{:foo =&gt; "hello", :bar =&gt; "world", :baz =&gt; 1, :bof =&gt; 2}
  </code></pre>
  
  <p>Any way to do this?</p>