[ create a new paste ] login | about

Link: http://codepad.org/3q6OaaXO    [ raw code | output | fork ]

Lua, pasted on Aug 29:
1
2
3
4
5
6
7
8
9
x = {22, 33, 44, 55}

rev = {}
for i=#x, 1, -1 do
	rev[#rev+1] = x[i]
end
x = rev

print(table.concat(x, ", "))


Output:
1
55, 44, 33, 22


Create a new paste based on this one


Comments: