RosettaCodeData/Task/Runtime-evaluation/Groovy/runtime-evaluation-1.groovy
2023-07-01 13:44:08 -04:00

7 lines
157 B
Groovy

def years1 = new GroovyShell().evaluate('''
(2008..2121).findAll {
Date.parse("yyyy-MM-dd", "${it}-12-25").format("EEE") == "Sun"
}
''')
println years1