Better HN
topnewbestaskshowjobs
Log inSign up

coreyd

2 karma · joined Dec 15, 2016 (9y ago) · 1 submissions

Submissions

comment 9y ago · link · parent

The way I tried to resolve 0 vs 1 based indexing in my head was is they have slightly different contexts. 0-based indexing tells you have far you are from the origin, the first element whereas 1-based indexing is useful for when thinking about how many elements you have.