Browsing Wiremod's section
← Back to ACE
💬

Community answer

Collected from the ACE community Discord archive around 2021-03-27. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

Iterating two tables' array+hash parts

🔌 WiremodUpdated 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.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.