lua-users home
lua-l archive

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


On 10/1/11, Stefan Reich <stefan.reich.maker.of.eye@googlemail.com> wrote:

> It's obviously a binary search to find the highest key. But does it
> even work? If there are nils in the table, it begins to act randomly.
> It may, among others, return the key before the lowest nil - or the
> highest key in the array.

That's why the length operator is undefined for non-sequences.