a[1] = 1 -- lua makes a a table... whoops no it errors! a = {}; a[1]=1 -- aah....
You don't need to take two commands to do it - 'a = {[1] = 1}' or 'a = {1}' are valid.