RosettaCodeData/Task/Multiple-distinct-objects/Groovy/multiple-distinct-objects-1.groovy
2014-01-17 05:34:36 +00:00

1 line
57 B
Groovy

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