Home Contents | # table.remove | Table | Lua Commands

## SYNOPSIS

table.remove(table[,pos])

## DESCRIPTION

Removes from table the element at position pos, shifting down other elements to close the space, if necessary. The default value for pos is n, where n is the length of the table, so that a call table.remove(t) removes the last element of table t.

## RETURN VALUE

Returns the value of the removed element.