4 ms·
Yes but can you do caaaaaar or caaddaar or cdaar, etc. with head and tail? In 5 characters with cadar you can express walking along a tree structure to get exa
by defgeneric 11y ago
Yes but can you do caaaaaar or caaddaar or cdaar, etc. with head and tail?
In 5 characters with cadar you can express walking along a tree structure to get exactly the node you want.
- davexunit 11y agocar, cdr, cadr, and friends are discouraged in some Lisp communities where pattern matchers are available.
- AnimalMuppet 11y agoSure. caaaaaar -> heaaaaaad. cadar -> heaiad. It's one more character, but if you really want to express yourself that way, there's no reason you couldn't...