Y
Hacker News
new
|
ask
|
show
|
jobs
by
earenndil
2754 days ago
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].