Hacker News new | past | comments | ask | show | jobs | submit login

I don't know how go does it, but in some languages negative indices count backwards from the rear end. E.G. myarr[-1] == myarr[myarr.length-1].



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: