Y
Hacker News
new
|
ask
|
show
|
jobs
by
nmz
1066 days ago
Because arrays start at 1, offsets start at 0
1 comments
defrost
1066 days ago
Arrays are just a sequence of objects.
Indexes
(traditionally) start at 1,
offsets
(measures from base) obviously start from zero.
link
Indexes (traditionally) start at 1, offsets (measures from base) obviously start from zero.