the-little-schemer
Flatten a list using only the forms in "The Little Schemer"
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[详细]
2023-04-02 09:02 分类:问答Why all the lambdas in The Little Schemer?
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[详细]
2023-02-06 02:44 分类:问答Why does this work in DrRacket but not in Racket from the console
(define pick (lambda (num lat) (cond ((null? lat) (quote())) ((= (sub1 num) 0) (car lat)) (else (pick (sub1 num) (cdr lat))))))[详细]
2023-01-08 09:48 分类:问答Little Schemer eqlist? function - alternate version?
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[详细]
2022-12-22 08:50 分类:问答Help understanding Continuations in Scheme
I have been working alongside The Little Schemer to learn Scheme and using PLT-Scheme for my environment.[详细]
2022-12-16 03:18 分类:问答Translating the Q and P function from The Little Schemer into Common Lisp?
In Chapter 9 of the Little Schemer, the Author presents the following two functions (define Q (lambda (str n)[详细]
2022-12-11 06:36 分类:问答