by tkrn · 9mo ago · 0 comments
Deeply nested pair & list constructs that need to be unpacked with complex car/cdr combinations is what IMHO gets messy and I take the appearance of cddar & co in code as a sign that I should start thinking about using proper data structures.
(eq? (pair? '(A . B)) #t)
(eq? (pair? (list 1 2 3)) #f)
But agree you probably want list-ref instead of cddr and friends.