Task

Show how to concatenate two arrays in your language.



If this is as simple as array1 + array2, so be it.




implement Command;
 
include "sys.m";
sys: Sys;
 
include "draw.m";
 
include "sh.m";
 
init(nil: ref Draw->Context, nil: list of string)
{
	sys = load Sys Sys->PATH;
 
	a := array[] of {1, 2};
	b := array[] of {3, 4, 5};
 
	c := array[len a + len b] of int;
	c[:] = a;
	c[len a:] = b;
 
	for (i := 0; i < len c; i++)
		sys->print("%d\n", c[i]);
}