3 ms·
I'm surprised I get to be the first to say this! But the answer is: work through all the exercises in The Little Schemer. If you actually do this (not just read
by iainctduncan 6y ago
I'm surprised I get to be the first to say this! But the answer is: work through all the exercises in The Little Schemer. If you actually do this (not just read it!), recursion will be easy and natural by the end of the book. (Or its previous incarnation, The Little Lisper).
- bmitc 6y agoI agree with this. I've recently went through the book providing Racket annotations, in the form of implementations and tests, and have the code up in the following repository. Maybe people are interested. https://github.com/bmitc/the-little-schemer https://github.com/bmitc/the-little-schemer I'm about to finish chapter 10, the last chapter and the interpreter section, probably tonight. Another suggestion for getting comfortable with recursion is the Coursera course by Dan Grossman, Programming Languages. https://www.coursera.org/learn/programming-languages https://www.coursera.org/learn/programming-languages