/ Published in: Lua
Expand |
Embed | Plain Text
function dump(table, indent) local indent = indent or '' for key, value in pairs(table) do io.write(indent, '[', tostring(key), ']') if type(value) == "table" then io.write(':\n') dump(value, indent .. '\t') else io.write(' = ', tostring(value), '\n') end end end
You need to login to post a comment.
