title: shift values from hash keys
body: <p>I have this value
  <code>
  {:cat=&gt;["cat1", "cat2", "cat3"], :dog=&gt;["dog1", "dog2", "dog3"]}
  </code></p>
  
  <p>And I'm looking to retrieve/shift values from each key:</p>
  
  <p>ie:</p>
  
  <p>get the following:</p>
  
  <pre><code>[{:cat =&gt; "cat1", :dog =&gt; "dog1"}, {:cat =&gt; "cat2", :dog =&gt; "dog2"} ... etc]
  </code></pre>
  
  <p>I'm really not sure the best way to approach this, any suggestions?</p>
  
  <p>Edit:</p>
  
  <p>So far I have:</p>
  
  <pre><code>a[a.keys.first].dup.map{|c| a.map{|index, vals| vals.shift}}   
  # =&gt; [["cat1", "dog1"], ["cat2", "dog2"], ["cat3", "dog3"]] 
  </code></pre>
  
  <p>Though not quite what I want due to lack of keys.</p>