title: How can I declare a Pair array using Kotlin
body: <p>I want to do something like this: (the code is in java)</p>
  
  <pre class="lang-java prettyprint-override"><code>Pair[] pairs = new Pair[1];
  </code></pre>
  
  <p>I want to convert this code to kotlin, the problem is I don't know how to initialize this array.
  This is the code I have:</p>
  
  <pre><code>val prof_intent = Intent(this, NewObjectiveActivity::class.java)
      val pairs = arrayOf(1)
      pairs[0] = Pair&lt;View, String&gt;(fabNewObjective, "activity_trans")
  
      val options = ActivityOptions.makeSceneTransitionAnimation(this, pairs)
      startActivity(prof_intent, options.toBundle())
  </code></pre>