3 ms·
The item in the list supplied for index starting at 1 shouldn't be there. There are valid reasons for using 1 instead of 0 for the first element. It all hinges
by oldandtired 9y ago
The item in the list supplied for index starting at 1 shouldn't be there.
There are valid reasons for using 1 instead of 0 for the first element. It all hinges on whether the address is being considered or the first element is being considered.
One could consider languages that use 0 as the alternative referencing for the end of some value that can be indexed and -1 as the last item of that value.