Home »
Code Examples »
Groovy Code Examples
Groovy - Merge Two Maps Code Example
The code for Merge Two Maps
// You can use plus:
assert [ a: true, b: false ] + [ a: false ] == [ a: false, b: false ]
// Or left shift:
assert [ a: true, b: false ] << [ a: false ] == [ a: false, b: false ]
Code by IncludeHelp,
on August 7, 2022 06:32