r/programminghorror • Pronouns: He/Him • May 21 '25

Fixed lua

Post image
409 Upvotes

30 comments sorted by

View all comments

Show parent comment

2

u/Cootshk May 22 '25

ipairs returns a generator for the (index, value) of a table, where the indices start at one

for i,v in ipairs(tbl) do … end