title: Idiomatic way to convert a List to a Pair in Kotlin
body: <p>There is an idiomatic approach to converting a <code>Pair</code> into a <code>List</code>:</p>
  
  <pre><code>Pair(a, b).toList()
  </code></pre>
  
  <p>No I am searching for the opposite process. My best approach looks like this:</p>
  
  <pre><code>Pair(list[0], list[1])
  </code></pre>
  
  <p>My problem with this is that I need to make a <code>List</code> value in code first for this to work. I would love something like this:</p>
  
  <pre><code>listOf(a, b).toPair()
  </code></pre>