RosettaCodeData/Task/Multiple-distinct-objects/Elena/multiple-distinct-objects.e...

15 lines
226 B
Plaintext

import system'routines;
import extensions;
class Foo;
// create a list of disting object
fill(n)
= RangeEnumerator.new(1,n).selectBy:(x => new Foo()).toArray();
// testing
public program()
{
var foos := fill(10);
}