Chapter 9. Recursion
“Well, you sure picked a good subject this time,” saidMorf, looking a bit puzzled.“We touched on this before, don’t you remember?”replied Logy. “You remember, recursion is when a procedureuses itself as part of the solution.”“Say what?”Yes, strange as that may seem, arecursive procedure is one that calls itself as part of the total solution. You sawexamples of this in earlier chapters.It is something like the two turtles inthe picture. Each turtle is using the otherto draw itself.________________________________________________
Is Life Recursive
Here’s a fun procedure to help you make some sense outof recursion, even though it really isn’t Logo.TO GET.THROUGH.LIFEGET.THROUGH.TODAYGET.THROUGH.LIFEENDThink about it for a moment. This says that to get throughlife, you have to get through today. Once you are throughtoday, you have to move on, right?But where?