Your Site Title

kotlin destructuring declarations

val (name, age) = person

被翻译成:

val name = person.component1()
val age = person.component2()

for ((a, b) in collection) { ... }

Reference