Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

ipairs and in pairs? [closed]

Asked by 8 years ago

This question already has an answer here:

What's the difference between pairs and ipairs?

What is the difference between ipairs and In pairs? THANKS

1
In the future, please use the search feature before asking Questions. https://scriptinghelpers.org/questions/4/whats-the-difference-between-pairs-and-ipairs adark 5487 — 8y

Marked as Duplicate by BlueTaslem

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?

1 answer

Log in to vote
-1
Answered by
xAtom_ik 574 Moderation Voter
8 years ago

Not sure, but this is what it says on the wiki:

Ipairs: Returns three values: an iterator function, the table t, and 0, so that the construction will iterate over the pairs (1,t[1]), (2,t[2]), ···, up to the first integer key absent from the table.

Pairs: Returns three values: the next function, the table t, and nil, so that the construction will iterate over all key–value pairs of table t.

Pairs is here.

Ipairs is here.

I hope this helped you!

0
Thank you CrabEngineer -1 — 8y
Ad