| |
shonclub
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1331 |
|
|
| 24 Dec 2013 11:34 PM |
| ipairs is for Apple. Cus it has that 'i' |
|
|
| Report Abuse |
|
|
| 24 Dec 2013 11:35 PM |
| Wow Apple is taking over roblox too? |
|
|
| Report Abuse |
|
Azureous
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25287 |
|
|
| 24 Dec 2013 11:56 PM |
pairs: Returns three values: the next function, the table t, and nil, so that the construction ipairs: Returns three values: an iterator function, the table t, and 0, so that the construction
Example of usage in script:
for i, v in pairs() do --code end
for i, v in ipairs() do --code end
Essentially though, pairs iterates through all key value pairs of a table and ipairs iterates through the key value pairs until it reaches a value that doesn't exist in the table. |
|
|
| Report Abuse |
|