title: Mapping arrays to list of objects kotlin
body: <p>I'm wondering about methods of mapping multiple arrays into one list of object. </p>
  
  <p>I mean e.g. I have</p>
  
  <pre><code>val a = arrayOf("A1","A2","A3")
  val b = arrayOf("B1","B2","B3")
  </code></pre>
  
  <p>and</p>
  
  <pre><code>data class SomeClass(val v1:String, val v2:String)
  </code></pre>
  
  <p>I want to parse it in elegant way to have list like that:</p>
  
  <pre><code>val list = listOf(SomeClass("A1","B1"),SomeClass("A2","B2"),SomeClass("A3","B3"))
  </code></pre>
  
  <p>I assume they are of the same length. The only way I thought of is:</p>
  
  <pre><code>val list = mutableListOf&lt;SomeClass&gt;() 
  for (i in a.indices) 
              array.add(SomeClass(a[i],b[i])
  </code></pre>
  
  <p>Is there a better, more elegant solution (maybe using Collecions.zip or Array.map)?</p>