Iterating two tables' array+hash parts
🔌 Wiremod•Updated 2 days ago•0 views
next(tbl, #tbl) starts iteration at the hash part - loop i=1..max(#t1,#t2) for arrays, then manually iterate hash parts with next(). Or merge into one table if …
Simpler way to iterate over both array and hash parts of two tables with pairs
next(tbl, #tbl) starts iteration at the hash part - loop i=1..max(#t1,#t2) for arrays, then manually iterate hash parts with next(). Or merge into one table if order doesn't matter.