Reputation: 21
I just wonder is there any other programming language to support negative index.
About C, the pointer can be calculated just like number. so please except it.
But in python, my_list[-1] is the last of list.
Is Python the only language supporting such a negative indexing concept?
your answer will be helpful, with various language experience. :)
Have a nice day :)
Upvotes: 2
Views: 855