Skip to content

Instantly share code, notes, and snippets.

@fur-q
Last active August 29, 2015 14:02
Show Gist options
  • Save fur-q/901db7ba544bde1736b6 to your computer and use it in GitHub Desktop.
Save fur-q/901db7ba544bde1736b6 to your computer and use it in GitHub Desktop.
it is a prettyprinter
local function prettyprint(t, l)
l = l or 0
for k, v in pairs(t) do
io.write(string.rep(" ", (l * 4)), k, " = ")
if type(v) == "table" then
io.write("table:\n")
prettyprint(v, l+1)
else
io.write(tostring(v), "\n")
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment