История изменений
Исправление quantum-troll, (текущая версия) :
function printtbl(tbl)
local write = io.write
for k,v in pairs(tbl) do
if type(v) == "table" then
write("{ ")
printtbl(v)
write("} ")
else
write(k, "=>", v, " ")
end
end
end
printtbl(a) ; print()
Исправление quantum-troll, :
function printtbl(tbl)
local write = io.write
for k,v in pairs(tbl) do
if type(v) == "table" then
write(" {")
printtbl(v)
write("} ")
else
write(k, "=>", v, " ")
end
end
end
printtbl(a) ; print()
Исправление quantum-troll, :
function printtbl(tbl)
local write = io.write
for k,v in pairs(tbl) do
if type(v) == "table" then
write("{")
printtbl(v)
write("}")
else
write(k, "=>" ,v)
end
end
end
printtbl(a) ; print()
Исходная версия quantum-troll, :
[code]
function printtbl(tbl)
local write = io.write
for k,v in pairs(tbl) do
if type(v) == «table» then
write(«{»)
printtbl(v)
write(«}»)
else
write(k, «=>» ,v)
end
end
end
printtbl(a) ; print()
[/code]