Author | Message |
---|---|
rabbott
Posts: 1649
|
Posted 15:21 Oct 14, 2015 |
I was asked whether it's ok to use a loop instead of recursion in Lab 3. Before answering I'd like to know what sort of loop you would use. Many loop options are covered in Chapter 9 of the text if you want to look ahead. Apparently there is a package of code that implements loops. You can import it into Racket. I don't want you to do that unless you have read and can explain how the code works. Last edited by rabbott at
15:29 Oct 14, 2015.
|
jyoung18
Posts: 30
|
Posted 15:23 Oct 14, 2015 |
My recommendation is looking at the bottom of page 59 of the text for the list eater recursion for this lab.
|
rabbott
Posts: 1649
|
Posted 16:12 Oct 14, 2015 |
That's a good example to look at to review your understanding of recursion. Also, look at the additional hint on the web page.
Last edited by rabbott at
22:47 Oct 14, 2015.
|