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); }