I have two maps in Groovy [a: 1, b: 2] and [b:1, c:3] and would like to create from them a third map [a: 1, b: 3, c: 3]. Is there a Gr
[a: 1, b: 2]
[b:1, c:3]
[a: 1, b: 3, c: 3]
The following example demonstrates adding two maps, to a third map m3:
m3
Map m1 = [ a:1, b:2 ]; Map m2 = [ b:1, c:3 ]; Map m3 = [:]; m3 << m1 m3 << m2