News for hackers. Stuff that matters.
Re:Learn Lua in 15 Minutes (2013) by bspammer on Tuesday June 30, 2020 @08:42PM (#23696490)
Let's say you want every 5th element of an array, with zero indexing your code can be very elegant. Your indexes are 5 * 0, 5 * 1, 5 * 2. With 1-indexing you have to do (5 * 0)+1, (5 * 1)+1, (5 * 3)+1 etc.

There are no comments on this comment yet.