Name
Pack -- pack a table (V8.0)
Synopsis
t = Pack(a[, b, ...])
Function
This function takes all arguments passed to it and stores them in a table, which is then returned. The table will have as many elements as you passed arguments to this function.

To unpack all table elements, use the Unpack() function.

Inputs
a
first parameter to pack into table
b
second parameter to pack into table
...
unlimited number of further parameters to pack
Results
t
a table containing all values passed to this function
Example
t = Pack(1, 2, 3)
Print(t[0], t[1], t[2])
This will print "1 2 3".

Show TOC