title: How to push an item to an array in Kotlin?
body: <p>I'm new in Kotlin, and got this case for my project..
  I have this example of array :</p>
  <pre><code>items: [
          {name: &quot;item A&quot;, quantity: &quot;9&quot;},
          {name: &quot;item B&quot;, quantity: &quot;2&quot;},
          {name: &quot;item C&quot;, quantity: &quot;4&quot;},
  ]
  </code></pre>
  <p>and i have an object that i want to add to items[ ]</p>
  <pre><code>new_object: {name: &quot;item AA&quot;, quantity: &quot;4&quot;}
  </code></pre>
  <p>Can anyone help me, how to do it in Kotlin...?
  Thank you before..</p>