This commit is contained in:
2024-08-24 22:41:08 +02:00
parent 77f1ac5d7a
commit c21f59778f
431 changed files with 68581 additions and 68581 deletions

View File

@@ -1,15 +1,15 @@
local function printTable(table, n)
if not n then n = 0 end
for k,v in pairs(table) do
local printText = ""
for i = 1, n do
printText = printText .. " "
end
printText = printText .. "[" .. k .. "] = " .. tostring(v)
print(printText)
if type(v) == "table" then
n = n + 1
printTable(v, n)
end
end
local function printTable(table, n)
if not n then n = 0 end
for k,v in pairs(table) do
local printText = ""
for i = 1, n do
printText = printText .. " "
end
printText = printText .. "[" .. k .. "] = " .. tostring(v)
print(printText)
if type(v) == "table" then
n = n + 1
printTable(v, n)
end
end
end