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

7 lines
144 B
Groovy

def years5 = Eval.xy(2008, 2121, '''
(x..y).findAll {
Date.parse("yyyy-MM-dd", "${it}-12-25").format("EEE") == "Sun"
}
''')
println years5