1
wanted to do a function that makes kind of something like the thing below
for i in pairs(v) do
if type(v[i])=="table" then
for j in pairs(v[i]) do
if type(v[i][j])=="table" then
print("...")
else
print(i,j,v[i][j])
end
end
else
print(i,v[i])
end
end
but that worked for indefinite numbers of tables inside other, like {{{{{1},{2},3},{4},5},{6},7},{8},9}
it is possible to make a function for this?
http://ideone.com/22Ddmf --example quoted above Xp
Answered in http://stackoverflow.com/questions/40580849/how-to-make-a-function-version-of-this.
– lhf