local tableone = { 1,2,3,4,5 } print(print(table.concat(tableone, ' '))) local head = table.remove(tableone, #tableone) tableone = {head, table.unpack(tableone)} print(print(table.concat(tableone, ' '))) -- output -- 1 2 3 4 5 -- 5 1 2 3 4 -- Tested on https://www.lua.org/cgi-bin/demo