title: Three dimensional array to list
body: <p>my question might sound trivial to quite a lot of you, but after a long internet search I still don't have an answer to the following question:</p>
  
  <p>How to convert a three dimensional array to a "three dimensional" list?</p>
  
  <p>Suppose I have the following:</p>
  
  <pre><code>A1 &lt;- matrix(runif(12),4,3)
  A2 &lt;- matrix(runif(12),4,3)
  A3 &lt;- matrix(runif(12),4,3)
  
  MyList  &lt;- list(A1,A2,A3)
  
  MyArray &lt;- array(NA,c(4,3,3))
  MyArray[,,1] &lt;- A1
  MyArray[,,2] &lt;- A2
  MyArray[,,3] &lt;- A3
  </code></pre>
  
  <p>Is there a way to convert <code>MyArray</code> into a list with "the same structure" as <code>MyList</code>?</p>
  
  <p>Thank you very much for your help!
  Best, Romain</p>