title: Kotlin destructuring more than five components
body: <p>I have the result of a regex that returns seven capturing groups into an array.</p>
  
  <p>Rather than using the subscript of the array elements to construct my object I thought I would use destructuring, the problem is it seems I can only have five components.</p>
  
  <p>A minimal example:</p>
  
  <pre><code>//  val (a, b, c, d, e) = listOf(1, 2, 3, 4, 5)
  val (a, b, c, d, e, f, g) = listOf(1, 2, 3, 4, 5, 6, 7)
  </code></pre>
  
  <p>Compiler output:</p>
  
  <pre><code>&gt; Error:(70, 41) Kotlin: Destructuring declaration initializer of type
  &gt; List&lt;Int&gt; must have a 'component6()' function 
  &gt; Error:(70, 41) Kotlin: Destructuring declaration initializer of type 
  &gt; List&lt;Int&gt; must have a 'component7()' function
  </code></pre>
  
  <p>Is there a way to have more than five components or is this the max? </p>