writing DSL map inside map with closure groovy,
问题 Accessing map inside map with closure, I have a map object the values is another map object e.g:- ` to access the data like this I can issue def map = [name:"Gromit", likes:"cheese", id:1234] def map2 =[map1:map] map2.each{entry -> println entry.key entry.value.each {entry1 -> println entry1.key println entry1.value } } to access a single map i can issue map.each{entry -> println entry.key println entry.value } ' How can I write a DSL for the above map example in simple any hint? 回答1: Here is