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

15 lines
227 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
import system'routines;
import extensions;
class Foo;
// create a list of disting object
fill(n)
2024-03-06 22:25:12 -08:00
= RangeEnumerator.new(1,n).selectBy::(x => new Foo()).toArray();
2023-07-01 11:58:00 -04:00
// testing
2026-02-01 16:33:20 -08:00
public Program()
2023-07-01 11:58:00 -04:00
{
var foos := fill(10);
}