title: How do I convert an array of Strings to an Array of Int in Kotlin
body: <p>I am looking to convert an <code>List&lt;String&gt;</code> to an <code>List&lt;Int&gt;</code> in Kotlin.</p>
  
  <pre><code>val stringArray = "1 2 3 4 5 6".split(" ")
  val intArray = MutableList&lt;Int&gt;(0, {0})
  for (item in stringArray) {
      intArray.add(item.toInt())
  }
  </code></pre>
  
  <p>The above will do it, but it feels as if there is a better way of doing this (possible with lambdas and streams?).</p>