Untitled

Run Settings
LanguageLua
Language Version
Run Command
mytable = setmetatable({ 10, 20, 30 }, { __tostring = function(mytable) sum = 0 for k, v in pairs(mytable) do sum = sum + v end return "表所有元素的和为 " .. sum end }) print(mytable)
Editor Settings
Theme
Key bindings
Full width
Lines