python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Every solution that I've seen for SICP Exercise 3.16 appears to cheat by creating more than three pairs. Where is my misunderstanding?
SICP Exercise 3.16 gives the reader a broken procedure for counting the numbers of pairs in a list structure:
(define (count-pairs x)
(if (not (pair? x))
0
(+ (count-pairs (car x))
...
J. Mini
Votes: 0
Answers: 1