API unpack

Returns values stored in a table's array portion. ... = unpack(t [, first [, last]])

Arguments

 * t : - A table to unpack values from.
 * first : - Index of the first value to return (default: 1).
 * last : - Index of the last value to return (default:  ).

Returns

 * : Mixed - Values contained at indices  through   in the table.

Details

 * Unless  is explicitly given, unpack relies on the   (array length) operator which can have undefined behaviour for tables holding nil values before the end of the array.

Examples
Typical usage:

Unpacking tables with nil values: