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

Which is Better: Pairs or Next Loop? [closed]

Asked by
metryy 306 Moderation Voter
5 years ago

I've never really understood why people choose to use next over pairs and vice versa. Was hoping to find an answer here, thanks. :)

0
I think pairs is better, The last time I used next, I cant make I wanted. yHasteeD 1819 — 5y
0
Imo it's up to personal preferance. However, interestingly, `pairs` uses `next`. https://www.lua.org/pil/7.3.html TheeDeathCaster 2368 — 5y
0
I've never used next directly... always pairs. Locking this question since it can technically be closed, but at the same time not. (Also, you got your answer) Shawnyg 4330 — 5y

Locked by Shawnyg

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?