Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dump(t, level)
- level = level or 0
- for i,v in pairs(t) do
- sleep(0.25)
- io.write(string.rep(' ', level))
- io.write(i..': ')
- if type(v) == 'table' then
- print ''
- dump(v, level + 1)
- else
- print(tostring(v))
- end
- end
- end
- local thing = {
- a_table = {
- another_table = {
- some_value = 'a string'
- }
- }
- }
- dump(thing)
Add Comment
Please, Sign In to add comment