it is recommended to use ipairs while iterating through values in an array , when you need speed , it iterates in index value pairs rather than key value pairs which reduces the time taken to return the values, so to return a value from an array for example, it would take lesser time using ipairs then with iterating though key value pairs, using pairs instead.
im veryyyy bad at tables and i need to learn alot of stufs. The newest thing i learn about it was table.getn()
getn is deprecated and should not be used. The length operator # exists
1 Like