RosettaCodeData/Task/Multiple-distinct-objects/Groovy/multiple-distinct-objects-1.groovy
2023-07-01 13:44:08 -04:00

1 line
57 B
Groovy

def createFoos1 = { n -> (0..<n).collect { new Foo() } }