title: How to Append Bytes to ByteArray in Kotlin
body: <p>I am a beginner in Kotlin and I was trying to append bytes at the end of a <code>ByteArray</code>. How can I do that ?</p>
  
  <p>Here is one way I tried. Does it look right?</p>
  
  <pre><code>var someByteArray = byteArrayOf(*payload, 0x01.toByte())
  </code></pre>
  
  <p>where <code>payload</code> is a <code>ByteArray</code></p>
  
  <p>Your help is much appreciated </p>