Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tbl = setmetatable({}, { --you can use setmetatable(tbl, {... for an already existing table
- __tostring = function(v)
- return string.Implode(" ", v)
- end,
- })
- tbl[1] = "noo"
- tbl[2] = "yjaisd"
- print(tbl)
- print("\n")
- print(tbl[1])
- print(tbl[2])
Add Comment
Please, Sign In to add comment