Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function printTable(t)
- local result = {}
- table.insert(result, "{ ")
- for i = 1, #t do
- local j = t[i]
- if type(j) == "table" then
- table.insert(result, printTable(j))
- else
- table.insert(result, j)
- end
- if i < #t then
- table.insert(result, ", ")
- end
- end
- table.insert(result, " }")
- return table.concat(result)
- end
Add Comment
Please, Sign In to add comment