title: Can rlang::fn_fmls() be nested?
body: <p>The documentation shows that this is possible:</p>
  <pre><code>fn &lt;- function(a = 1, b = 2) rlang::fn_fmls() 
  fn()
  
  $a
  [1] 1
  
  $b
  [1] 2
  </code></pre>
  <p>I would like to have <code>rlang::fn_fmls()</code> within a function, and return the same structure for arguments within the current scope.</p>
  <p>Expected behaviour:</p>
  <pre><code>x &lt;- function(a, b){
    rlang::fn_fmls(fn = rlang::current_fn())
  }
  
  x(a = 1, b = 2)
  
  $a
  [1] 1
  
  $b
  [1] 2
  </code></pre>
  <p>Actual behaviour:</p>
  <pre><code>x &lt;- function(a, b){
      rlang::fn_fmls(fn = rlang::current_fn())
  }
  
  x(a = 1, b = 2)
  
  $a
  
  
  $b
  </code></pre>
  <p>Another approach I've tried is:</p>
  <pre><code>x &lt;- function(a, b){
      tmp &lt;- base::match.call() %&gt;% 
          base::as.list() 
    
    
      tmp %&gt;% 
          stringr::str_detect('x') %&gt;% 
          purrr::discard(tmp, .)
  }
  
  x(a = 1, b = 2)
  
  $a
  [1] 1
  
  $b
  [1] 2
  </code></pre>
  <p>Is there a way with rlang to get my intended results?</p>