lua-users home
lua-l archive

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


>> 
> 
> The typical answer in Lua is to iterate until you hit nil, thus
> signifying the end of the sequence. Using the length-acquisition
> function is either O(n) or O(log n) (I forget which version switched
> to O(log n)). If you need nil as a valid element in your array, heaven
> help you, because this list will argue until eternity over what the
> right way to handle that is.
> 

Groundhog Day!! :)

—Tim