Wow... Kiyotaka Oku's fork of this shows how to do it in one line :-)
The other day, I saw Harold Cooper's One-line tree in Python via autovivication, and wondered if the same thing was possible in Groovy.
oaudard@work:~/Projects/sample-grails-project$ grailsenv | |
GRAILS_HOME=/home/oaudard/dev-utils/grails | |
grails | |
grails-1.3.7 | |
grails-1.3.8 | |
grails-2.0.0 | |
grails-2.0.1 | |
grails-2.0.3 | |
grails-2.0.4 | |
grails-2.1.0 |
Wow... Kiyotaka Oku's fork of this shows how to do it in one line :-)
The other day, I saw Harold Cooper's One-line tree in Python via autovivication, and wondered if the same thing was possible in Groovy.