Grails, Technology

Groovy collectEntries to get a Map from a Collection

Dealing with collections is a part of a Developer’s daily life. However, sometimes it becomes quite cumbersome when we have to iterate through each collection every time we want a manipulated Collection. Ever thought of a groovier way to manipulate a collection and get a Map in a single line? Well, multiple iterations to convert a...

by Manali Khanna
Tag: collectEntries