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

The 0s and 1s are specific to the examples. A range in nim `x..y` includes both x and y. Sequences are always 0-indexed. Now, if you want to start with 1 for any range you can.


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

Search: