Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by MomsAVoxell

1 year ago

> You might decide to count with foreach(), but that will terminate when it encounters the first value in the array that is NULL.

True only if the programmer doesn’t take the effort to understand the difference between ipairs and pairs.

0 comments

MomsAVoxell

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities