title: R named list - names() returns NULL
body: <p>Hi I am new to R and have a simple question:</p>
  
  <p>I was trying out named lists, but for some reason the name I am giving is ignored:</p>
  
  <pre><code>foo &lt;- list(
    bar &lt;- 5
  )
  names(foo)
  # NULL
  </code></pre>
  
  <p>I appreciate any help :)</p>