title: foreach: Keep names
body: <p>Is there a way to make foreach() return a named list/data.frame. E.g.</p>
  
  <pre><code>foo &lt;- list(a = 1, b = 2)
  bar &lt;- foreach (x = foo) %do% { x * 2 }
  </code></pre>
  
  <p>returns <code>list(2, 4)</code>. I would want it to return <code>list(a = 2, b = 4)</code>.</p>
  
  <p>Plus, is there a way to access the name from within the loop body?</p>
  
  <p>(I'm not interested in a solution which assigns the names after the foreach loop.)</p>
  
  <p>Regards</p>