RosettaCodeData/Task/Runtime-evaluation/Groovy/runtime-evaluation-1.groovy

8 lines
157 B
Groovy
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
def years1 = new GroovyShell().evaluate('''
(2008..2121).findAll {
Date.parse("yyyy-MM-dd", "${it}-12-25").format("EEE") == "Sun"
}
''')
println years1