title: Calling the same function multiple times on the same data but different arguments using purrr
body: <p>I'm trying to call the same function multiple times on the same data but with different function arguments.
  My problem can be described as:</p>
  
  <pre><code>x &lt;- as.character(1:5)
  l &lt;- list(list(name = "a", collapse = ""), list(name = "b", collapse = "-"))
  output &lt;- list()
  
  for(l_cur in l) {
    output[[l_cur$name]] &lt;- x %&gt;% paste(collapse = l_cur$collapse)
  }
  </code></pre>
  
  <p>Is there any cleaner way to do it using <code>purrr</code>?<br>
  (Background: I want to use this with <code>rvest</code> because I'm calling <code>html_nodes()</code> on the same data multiple times but I'm only changing <code>css</code> argument.)</p>