2 ms·
The index a[b] in languages with safe bounding can be thought of as a[(a.length + b) % a.length]. Modulo and exponents are, to me, the primary reason for using
by Normal_gaussian 10y ago
The index a[b] in languages with safe bounding can be thought of as a[(a.length + b) % a.length].
Modulo and exponents are, to me, the primary reason for using a 0 based numbering system