local n, x, i; fun printArray (x) { local elem; if x.length == 0 then return fi; for i:=0, i