I am having a problem doing a multiple assignment statement for values in a map.
def map = [a:1,b:2]
(map.a, map.b) = [3,4]
this throws an exception:
expecting ')', found ',' at line: 2, column: 7
However, this works fine:
def a = 1
def b = 2
(a, b) = [3,4]
It doesn't support that.
http://groovy.codehaus.org/Multiple+Assignment
Actually, you can do this if you cheat and use
.with
: