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

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.