table.as.list

Syntax

l = table.as.list(t)
table.as.list(t) = l

Get/set a table converted to/from a list of 2d vectors.

On get a list of 2D vectors is returned. Each entry in the list corresponds to an entry in the table.

On set the table indicated is created if necessary and cleared if it already exists. The values in the list are assumed to be 2D vectors and used to create a table in the same order.

Returns:

l - list of 2D vectors

Accepts:

l - list of 2D vectors

Arguments:

t - integer name, string name, or table pointer