Re:The Origin of CAR and CDR in Lisp (2005)
by kazinator on Saturday December 30, 2017 @01:07AM
(#16034090)
car and cdr is not necessarily about conses. I made them the basis for iterating over any list-like sequences in TXR Lisp. To participate in the protocol, an object can implement methods called cdr, car and nullify. This latter nullify should return nil if the object considers itself as representing "empty". Otherwise it can return the object itself, or possibly something else, like an ordinary list.
[ Parent
| on HN ]
There are no comments on this comment yet.