I\'m going through The LIttle Schemer to learn Scheme (as an old C 开发者_StackOverflow社区programmer) and as an exercise I tried to write a procedure to flatten a list using only the forms in The Lit
After learning a bit of Scheme from SICP, I started reading The Little Schemer (which I find quite entertaining) and am about one fourth done.I noticed that I can write many (most? all?) solutions wit
(define pick (lambda (num lat) (cond ((null? lat) (quote())) ((= (sub1 num) 0) (car lat)) (else (pick (sub1 num) (cdr lat))))))
I\'m going through the \"Little Schemer\" book, and doing the various functions.Generally I end up with the same version as the books, but not for eqlist?, which is a function to test the equality of
I have been working alongside The Little Schemer to learn Scheme and using PLT-Scheme for my environment.
In Chapter 9 of the Little Schemer, the Author presents the following two functions (define Q (lambda (str n)