lua-users home
lua-l archive

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


On Fri, 1 Nov 2019 at 19:55, bil til <flyer31@googlemail.com> wrote:
> If I want to iterate over such "further info fields" in a fast way in lua
> (and I do NOT know the key names, or I possibly would like to check such
> "further key names"), do I really have to iterate over the complete table
> with pairs? (is this not a complete waste of time, as I then possibly get
> also all the ipairs entries of the table for iteration in my for loop?).

No. See `next` (and infact pairs uses next under the covers).