Skip to content

Instantly share code, notes, and snippets.

@joehakimrahme
Created May 15, 2012 22:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save joehakimrahme/2705525 to your computer and use it in GitHub Desktop.
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