3 ms·
agree, should be if (toIndex >= arrayLen)
by hathym 10y ago
agree, should be if (toIndex >= arrayLen)
- ArkyBeagle 10y agoIf an index of of the closed interval 0...arrayLen-1, then no. If the array index is of the closed interval 1 ... arrayLen, then yes. Shame on the second case; that war was fought decades ago and it lost. FORTRAN indexing is Bad.