[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: C API - lua_next traversal of "array" table
- From: Tim Hill <drtimhill@...>
- Date: Thu, 18 Aug 2016 18:34:39 -0700
>>
>
> 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