fork download
  1. v = {}
  2. v[1] = {}
  3. v[2] = {1}
  4. v[3] = {1,2}
  5. v[4] = 3
  6. for i in pairs(v) do
  7. if type(v[i])=="table" then
  8. for j in pairs(v[i]) do
  9. if type(v[i][j])=="table" then
  10. print("...")
  11. else
  12. print(i,j,v[i][j])
  13. end
  14. end
  15. else
  16. print(i,v[i])
  17. end
  18. end
Success #stdin #stdout 0s 2844KB
stdin
Standard input is empty
stdout
2	1	1
3	1	1
3	2	2
4	3