title: R fastest way to get values from list as vector
body: <p>in R, give a list</p>
  
  <pre><code>l1 &lt;- list(a = "A", b = "B", c = "C")
  </code></pre>
  
  <p>and a vector </p>
  
  <pre><code>v&lt;- c("a", "c")
  </code></pre>
  
  <p>How to get elements from the list in vector? For example</p>
  
  <pre><code>l1[v] 
  </code></pre>
  
  <p>returns a list, while I need a vector as</p>
  
  <pre><code>c("A", "C")
  </code></pre>
  
  <p>Looking for <strong>fastest</strong> <strong>one-liner</strong>. </p>