Whoever's new to lua, know this: If you try and get a table length using # it will give you the result only for an array, only up until the array's next item is nil. Meaning if you have index 1 as nil, but have 300 other items, the length is going to be 0... Custom counter better

programmer_lua's tweet image. Whoever's new to lua, know this:
If you try and get a table length using # it will give you the result only for an array, only up until the array's next item is nil. Meaning if you have index 1 as nil, but have 300 other items, the length is going to be 0...
Custom counter better

United States Trends
Loading...

Something went wrong.


Something went wrong.