What is the best way to replace with a variable in Groovy?
Is it possible to do something like Ruby?
x, y = y, x
Just use parentheses for multiple assignment
(x,y) = [ y, x ]