Idk if you are trolling, but in most cases 0 is considered a part of the natural numbers. And there is a huge difference between the naturals and the integers: the naturals are for induction, the integers are for algebra.
Depends on where you are! In some places it is more common to say that 0 is natural and in other’s not. Some argue it’s useful to have it N, some, say that it makes more historical and logical sense for 0 not to be in N and use N_0 when including it. It’s not a settled issue, it’s a matter of perspective.
I guess it depends on the place. But the arguments for not including seem futile, when
- we use 0 to even write the other natural numbers
- we define almost all of our algebraic objects (groups, rings/fields, modules/vector spaces, algebras) to include 0
- we don’t do modular arithmetic with {1,…,n} that would be crazy
Of course 0 vs no 0 only matters if you actually do arithmetic with it. If you only index you could just as well start with 5.
(The only reasons I can think of to start at 1 is that 1 is the 1-st element then and the sequence (1/n) is defined for all natural n)
Lua is just a based language. It has strong unpopular opinions and doesn’t care what you think.
What about 10?