Convert List of Maps into Single Map In Groovy

Viewed 1423

I have a list of map like below:

List mapOne = [[hi:1], [hello:2],[xyx:4]]

This map should be converted to one single map like below

Map resultMap=[hi:1, hello:2,xyx:4]

Do we have any built in functions in Groovy?

2 Answers
Related