Task

Show how to concatenate two arrays in your language.



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




 
program ArrayConcatenation
    function main()
        a int[] = [ 1, 2, 3 ];
	b int[] = [ 4, 5, 6 ];
	c int[];
	c.appendAll(a);
	c.appendAll(b);
 
	for (i int from 1 to c.getSize())
	    SysLib.writeStdout("Element " :: i :: " = " :: c[i]);
	end
    end
end
 