title: Set names of a newly created nested list with purrr
body: <p>I am trying to create a named nested list, something like:</p>
  
  <pre><code>list(
    list(id = 1, name = "Abbie"), 
    list(id = 2, name = "Benjamin")
    # ... more list statements here
  )
  </code></pre>
  
  <p>I have created the nested list structure using <code>purrr::map2</code>: </p>
  
  <pre><code>c("Abbie", "Benjamin") %&gt;% 
    map2(seq(.), ., list) 
  </code></pre>
  
  <p>However, how do I then name the list with purrr? </p>
  
  <p>Note: From this <a href="https://stackoverflow.com/questions/38852332/setnames-in-pipeline-r-code">question</a> I experimented with the following, which does not do what I'm looking for:</p>
  
  <pre><code>c("Abbie", "Benjamin") %&gt;% 
    map2(seq(.), ., list) %&gt;% 
    set_names(paste0("ID", seq(.)))
  </code></pre>