Yet another solution would be: def m1 = [ a:1, b:2 ] def m2 = [ b:1, c:3 ] def newMap = [m1,m2]*.keySet().flatten().unique().collectEntries { [ (it): [m1 ...
確定! 回上一頁