You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0-based indexing is a convention taken from C, where array indexing is equivalent to taking memory offsets. We are careful about borrowing semantics from C into Klar, especially the low-level ones.
Using 1-based indexing allows the list's length to be used as a valid index, avoiding off-by-one bugs.
Lua, Julia, MATLAB, R, and Fortran are examples of languages with 1-based indexing.
Using 1-based indexing means the ..< operator will be removed, so only ... is needed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
lengthto be used as a valid index, avoiding off-by-one bugs...<operator will be removed, so only...is needed.All reactions