FANDOM


Returns the elements from the given table as a list.

list = unpack (tbl[, i [, j]])

Parameters Edit

Arguments Edit

tbl
table - The table to be unpacked.
i
number - The element to start at. Default is 1.
j
number - The element to end at. Default is the length of the table.

Returns Edit

list
explist - The unpacked elements of the array in list form.

Example Edit

The result of the following is x = "a", y = false, and z = {"c"}:

local x, y, z = unpack({"a", false, {"c"}});

Notes Edit

Related Functions Edit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.