Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Lua presentation
t1 = { a=1, b="hello" }
print (t1["a"]) -- outputs "1"
t2 = { [1<4] = "foo", [1<10] = "bar" }
print (t2[true]) -- outputs "bar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment