I want to do swapping with making a
Pair and destructuring deferred assignment like this.
var a = 2.0 var b = 1.0 (a, b) = b to a
But Kotlin doesn’t allow this syntax. We can only use destructuring when an immediate assignment.
Why we can’t use destructuring when assigning to existing variables?