3 lines
98 B
Groovy
3 lines
98 B
Groovy
|
|
// Following fails, creates n references to same object
|
||
|
|
def createFoos2 = {n -> [new Foo()] * n }
|