--[[
	Packs a number of arguments into a table and returns its length.
	Used to cajole varargs without dropping sparse values.
]]

local function pack(...)
	local len = select("#", ...)

	return len, { ... }
end
