4 ms·
Not exactly, cadr is what you would get if you called CDR on a list, then car on the result of that. Lisp has several of these types of chains. Since cdr alway
by ball_of_lint 9y ago
Not exactly, cadr is what you would get if you called CDR on a list, then car on the result of that. Lisp has several of these types of chains.
Since cdr always returns a list, to get a single item you would need to call car on it, therefore cadr.
- ambulancechaser 9y agosomeone mentioned it earlier but it's not true that cdr always returns a list, for instance, `(cdr `(1 . 2))`