title: Initialize a list of matrices in R
body: <p>I was wondering if there's a quick way to initialize a list of matrices in R. For example I'm looking for a (one-liner) to reproduce the same results as the following:</p>
  
  <pre><code>output_array = list()
  for(i in 1:10){
  output_array[i] = diag(2)
  }
  </code></pre>
  
  <p>Thanks!</p>