Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can visualize it as wrapping to the sequence's other side. That is you start at elem 0 and going backwards to -1 gets you to the other side (up to -len(seq) that returns to elem 0). Kinda like border wrapping in most modern Snake variants. Although this is only for negative indexing.


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

Search: