lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> l={-1,nil,1,nil,3,nil,5}
> #l => 7
> 
> 7 is no n, so that l[n] is not nil, but l[n+1] is.

> l={-1,nil,1,nil,3,nil,5}
> print(#l)
7
> n = 7
> print(l[n], l[n + 1])
5	nil


-- Roberto