RosettaCodeData/Task/Multiple-distinct-objects/Elena/multiple-distinct-objects.elena
2026-02-01 16:33:20 -08:00

14 lines
227 B
Text

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