Maps in Groovy
Maps are Groovy’s built-in associative data type (sometimes called hashes or dicts in other languages).
To run the program, put the code in Example.groovy
and use groovy
to execute it.
Groovy maps appear in the form [k:v, k:v]
when printed with println
.