3 ms·
When using > stuff = { [0]="one", "two", "three" } > for k,v in pairs(stuff) do print(v) end it prints all three elements in the correct order. I rarely u
by Rochus 5y ago
When using
> stuff = { [0]="one", "two", "three" }
> for k,v in pairs(stuff) do print(v) end
it prints all three elements in the correct order. I rarely use iterators for performance reasons anyway. Instead of ipairs one can use
> for i=0,#stuff do print(stuff[i]) end