Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Programming in Lua
t3 = {1, 4, 5, 2, 31}
print (t3[3]) -- will output "5"
t4 = {a = "foo", b = 3}
print (t4.a) -- will output "foo"
print (t4.b) -- will output "3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment