It looks like you're new here. Sign in or register to get started.
There are times when I felt a dire need to access array elements from reverse, maybe the last item or the second last. The way to go about it was never straightforward like it is in some other languages where you can just say array[-1] and it gives you the last item. Instead we have to do things…