In Kotlin I can write the following to decompose a...
# language-proposals
j
In Kotlin I can write the following to decompose an `IndexedValue`:
Copy code
someArray.withIndex().map { indexedValue -> 
  val (index, value) = indexedValue
  // do something with index and value
}
but not:
Copy code
someArray.withIndex().map { (index, value) -> 
  // do something with index and value
}
Is this intentional?