Módulo:Tablas
Apariencia
La documentación para este módulo puede ser creada en Módulo:Tablas/doc
local z = {}
function z.mostrar(tabla, identacion)
identacion = identacion or ''
for k,v in pairs(tabla) do
if type(v)=='table' then
return "{\n" .. mostrar(v,identacion .. ' ') .. "}\n"
else
return string.format("\"%s\"\n", tostring(v))
end
end
return resultado
end
function z.en(tabla, elemento)
if not elemento then
return
end
for k,v in pairs( tabla ) do
if v == elemento then
return k
end
end
end
return z