v = (x=1, y=2)
@destructure v
println("x = $x, y = $y")
Basically I want through a macro or some other way, to be able to take all the pairs/values in a tuple and assign them as variable = value, to be used later on in a function. I know of:
(x,y) = v
But I do not know if I will have 2 or N args. This is just a toy example.