mirror of
https://forgejo.merr.is/annika/KittenDismount.git
synced 2025-12-11 11:55:25 -05:00
14 lines
320 B
Lua
14 lines
320 B
Lua
function KittenDismount_dump(o)
|
|
if type(o) == 'table' then
|
|
local s = '{ '
|
|
for k,v in pairs(o) do
|
|
if type(k) ~= 'number' then
|
|
k = '"'..k..'"'
|
|
end
|
|
s = s .. '['..k..'] = ' .. KittenDismount_dump(v) .. ','
|
|
end
|
|
return s .. '} '
|
|
else
|
|
return tostring(o)
|
|
end
|
|
end
|