title: ruby: how to convert hash into array
body: <p>I have a hash that contains numbers as such:</p>
  
  <pre><code>{0=&gt;0.07394653730860076, 1=&gt;0.0739598476853163, 2=&gt;0.07398647083461522}
  </code></pre>
  
  <p>it needs to be converted into an array like:</p>
  
  <pre><code>[[0, 0.07394653730860076], [1, 0.0739598476853163], [2, 0.07398647083461522]]
  </code></pre>
  
  <p>i tried my hash.values which gets me:</p>
  
  <pre><code>[0.07398921877505593, 0.07400253683443543, 0.07402917535044515]
  </code></pre>
  
  <p>I have tried multiple ways but i just started learning ruby.</p>