Collections
Five lessons on the collections a Groovy program lives in: the list literal and its indexes, the map with property access, the set and the range, the GDK methods that replace most loops, and the spread operator, the subscript and the typed collection.
020
Lists
the literal, indexing, negative indexes, adding and removing, and the list a method returns
Open
021
Maps
map literals, property access, defaults, iteration and the sorted output
Open
022
Sets and ranges
a set as a collection without duplicates, and a range as a lazy list
Open
023
The GDK methods
collect, findAll, inject, groupBy, sort, unique, sum, take and drop on one list
Open
024
Spread, subscript and generics
the spread operator, the subscript assignment, immutable views and typed collections
Open