Last active
January 2, 2016 15:19
-
-
Save amontalenti/8322307 to your computer and use it in GitHub Desktop.
Groovy example of lightweight data modelling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.pixelmonkey.groovytests; | |
someItems = [1, 2, 3, 4] | |
someItems.each { | |
println it | |
} | |
someMapping = ["ST": "started", "IP": "in progress", "DN": "done"] | |
someMapping.each { key, val -> | |
println "${key} => ${val}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment