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

Yes, but the various Lisps that Common Lisp is the more-or-less common subset of are (were?) all 0-indexed. Between easy heap implementation (left is (ash index 1), right is (1+ (ash index 1)), parent is (ash index -1)) and easy last element selection (nth seq (length seq)) I prefer 1-indexing, but I realize that's an unpopular opinion.


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

Search: