title: Ruby `each_with_object` with index
body: <p>I would like to do <code>a.each_with_object</code> with <code>index</code>, in a better way than this:</p>
  
  <pre><code>a = %w[a b c]
  a.each.with_index.each_with_object({}) { |arr, hash|  
    v,i = arr
    puts "i is: #{i}, v is #{v}" 
  }
  
  i is: 0, v is a
  i is: 1, v is b
  i is: 2, v is c
  =&gt; {}
  </code></pre>
  
  <p>Is there a way to do this without <code>v,i = arr</code> ?</p>