When I run this code snippet in Lua (using PICO-8 if it helps)
a = {}
table.insert(a,1,'foo')
I get the error
Attempted to index global "table" (a nil value)
According to the Lua website, this should work (https://www.lua.org/pil/19.2.html). What am I doing wrong?