Abusing destructuring to get the properties and th...
# random
k
Abusing destructuring to get the properties and the container in one expression
Copy code
data class Foo(val a: String, val b: Int) {
    operator fun component3() = this
}

val (a, b, foo) = getFoo()
K 2