Forgot to commit the last few days
This commit is contained in:
@@ -26,3 +26,15 @@ function tablelength(T)
|
||||
end
|
||||
return count
|
||||
end
|
||||
|
||||
function print_table(t, indent)
|
||||
indent = indent or ""
|
||||
for k, v in pairs(t) do
|
||||
if type(v) == "table" then
|
||||
print(indent .. k .. ":")
|
||||
print_table(v, indent .. " ")
|
||||
else
|
||||
print(indent .. k .. ": " .. tostring(v))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user