You can get even further by defining a data class in the block to store the result, return an instance of that data class and then you're not limited to only destructuring 2 values
Copy code
val (a, b, c) = run {
data class Temp(val a: Int, val b: Int, val c: Int)
Temp(1, 2, 3)
}
And since the data class is only defined in the block you avoid clutter.