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

As noted earlier, the names first and rest date from the 70s and were already around in Lisp Machine Lisp. Also, to nitpick: in Racket, first (car) will sometimes throw when used on lists, too, if the list happens to be the empty list (which has been true for decades in Scheme). It's more correct to say that it throws when used on non-pairs/conses (aka atoms).


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

Search: