table.value

Syntax

v = table.value(t,i)
table.value(t,i) = v

Get/set table entry. A table is a list of (x,y) pairs and this function allows direct access to a specific entry in that list, by index i.

A 2D vector must be supplied, or it is returned and entries are created if i is greater than table.size. A new table is created if a unique integer or string name is given as the first argument.

Returns:

v - vector of x/y value

Accepts:

v - vector of x/y value

Arguments:

t - integer name, string name, or table pointer

i - index of table entry