title: ArrayOfNulls with LiveData in Kotlin
body: <p>I have a custom class Card. I use it to create an array using <code>arrayOfNulls()</code> like this:</p>
  
  <pre><code>var cards: Array&lt;Array&lt;Card?&gt;?&gt; = Array(n) { arrayOfNulls&lt;Card?&gt;(n) }
  </code></pre>
  
  <p>where n is an <code>Int(Kotlin)</code>.</p>
  
  <p>Now I need to move this variable in my <code>ViewModel</code> class and wrap it around a <code>LiveData</code> class (preferably MutableLiveData). </p>
  
  <p>How should I declare &amp; initialize the cards variable in my <code>AndroidViewModel</code> class?</p>