<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://linguifex.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3Atable%2Fpack</id>
	<title>Module:table/pack - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://linguifex.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3Atable%2Fpack"/>
	<link rel="alternate" type="text/html" href="https://linguifex.com/w/index.php?title=Module:table/pack&amp;action=history"/>
	<updated>2026-04-06T22:18:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://linguifex.com/w/index.php?title=Module:table/pack&amp;diff=478828&amp;oldid=prev</id>
		<title>Sware: Created page with &quot;--[==[ An implementation of the {table.pack} function found in Lua 5.2+, which returns a table containing a list of the arguments passed. The returned table also contains the key {n}, which is an integer giving the number of arguments passed.  Note that the list in the returned table will contain gaps if any of the arguments passed were {nil}. This will also be reflected in the value of {n}, which always matches the number of arguments passed (e.g. {pack(&quot;foo&quot;)} returns...&quot;</title>
		<link rel="alternate" type="text/html" href="https://linguifex.com/w/index.php?title=Module:table/pack&amp;diff=478828&amp;oldid=prev"/>
		<updated>2025-11-25T17:14:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;--[==[ An implementation of the {table.pack} function found in Lua 5.2+, which returns a table containing a list of the arguments passed. The returned table also contains the key {n}, which is an integer giving the number of arguments passed.  Note that the list in the returned table will contain gaps if any of the arguments passed were {nil}. This will also be reflected in the value of {n}, which always matches the number of arguments passed (e.g. {pack(&amp;quot;foo&amp;quot;)} returns...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--[==[&lt;br /&gt;
An implementation of the {table.pack} function found in Lua 5.2+, which returns a table containing a list of the arguments passed. The returned table also contains the key {n}, which is an integer giving the number of arguments passed.&lt;br /&gt;
&lt;br /&gt;
Note that the list in the returned table will contain gaps if any of the arguments passed were {nil}. This will also be reflected in the value of {n}, which always matches the number of arguments passed (e.g. {pack(&amp;quot;foo&amp;quot;)} returns the table { {&amp;quot;foo&amp;quot;, n = 1} }, whereas {pack(&amp;quot;foo&amp;quot;, nil, nil)} returns { {&amp;quot;foo&amp;quot;, n = 3} }).]==]&lt;br /&gt;
return table.pack or function(...)&lt;br /&gt;
	-- On Lua 5.1, use the hidden `arg` variable with `...`, which is the same&lt;br /&gt;
	-- as table.pack(...) on Lua 5.2+. Both are strictly equivalent to&lt;br /&gt;
	-- {n = select(&amp;quot;#&amp;quot;, ...), ...}, but more performant.&lt;br /&gt;
	return arg&lt;br /&gt;
end&lt;/div&gt;</summary>
		<author><name>Sware</name></author>
	</entry>
</feed>