lua-users home
lua-l archive

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


How would I fill a second result table in that same loop? Looping through the data

twice would be too slow, considering 'data' may have 10000 elements.

Create another table before your for-loop, then you can call lua_settable(L, -4) in your inner loop.