SICP Exercise 2.25 Pick 7
Exercise 2.25. Give combinations of cars and cdrs that will pick 7 from each of the following lists:
SOLUTION
The code and tests are here.
(1 3 (5 7) 9)
((7))
(1 (2 (3 (4 (5 (6 7))))))
((7))
(1 (2 (3 (4 (5 (6 7))))))
The code and tests are here.
Comments
Post a Comment