local function Z(w,z,A)A=A or tostring(w)z=z or 0 for w,M in pairs(w)do local S="\n"..(string.rep("  ",z)..(tostring(w).."\058 "))if type(M)=="\116\097\098\108\101"then A=A..S A=Z(M,z+1,A)else A=A..(S..tostring(M))end end return A end Table.stringify=Z
--- Recursively prints the table. Does not handle recursive tables.
-- @function Table.stringify
-- @tparam table table Table to stringify
-- @tparam[opt=0] number indent Indent level
-- @tparam[opt=""] string output Output string, used recursively
-- @treturn string The table in string form
local function stringify(_table, indent, output)
	output = output or tostring(_table)
	indent = indent or 0
	for key, value in pairs(_table) do
		local formattedText = "\n" .. string.rep("  ", indent) .. tostring(key) .. ": "
		if type(value) == "table" then
			output = output .. formattedText
			output = stringify(value, indent + 1, output)
		else
			output = output .. formattedText .. tostring(value)
		end
	end
	return output
end
Table.stringify = stringify
