title: Pass a block to map function
body: <p>I was wondering if something like this was possible?</p>
  
  <pre><code>info = arrange_info({|x| [x.name, x.number]}, info_array)
  
  def arrange_info(block, info)
      info.map(block).to_h
  end
  </code></pre>
  
  <p>This would allow me to pass different blocks to arrange the array is different ways, how I have it now doesn't work, but is something like this possible?</p>