Re:The Origin of CAR and CDR in Lisp (2005)
by kqr on Tuesday December 26, 2017 @03:18PM
(#16010731)
> When you're operating on lists as trees, the names first and rest are actively misleading. The car and cdr are the left and right subtrees, not the first and rest of something.
If by trees you mean 2-ary trees, sure. For any other n, #'first and #'rest are probably the correct generalisation.
If by trees you mean 2-ary trees, sure. For any other n, #'first and #'rest are probably the correct generalisation.