RosettaCodeData/Task/Multiple-distinct-objects/Scala/multiple-distinct-objects.s...

2 lines
39 B
Scala

for (i <- (0 until n)) yield new Foo()