Для документации этого модуля может быть создана страница Модуль:TableOfChemicals/doc
return { test = function()
local ok, result = pcall(function()
local r = {}; for k,v in pairs(_G) do if type(v) == "table" then local count = 0; for _ in pairs(v) do count = count+1 end; r[#r+1] = k .. "(table," .. count .. ")" elseif type(v) == "function" then r[#r+1] = k .. "(func)" end end; return table.concat(r, ",")
end)
if ok then return tostring(result) else return 'ERR: ' .. tostring(result) end
end, }