Re: [racket-users] htdp/2e: exercises 336-338, feedback desired and questions

2015-04-05 Thread Matthias Felleisen
[[ Please switch to "draft release". ]] On Apr 2, 2015, at 3:03 PM, Daniel Bastos wrote: > > ​​Exercise 336 > > ​Solution. It's not a proper use. It produces nothing. It doesn't terminate. > Because (drop ls 0)​ returns a list not smaller than ls, hence the recursion > of bundle doesn't re

[racket-users] htdp/2e: exercises 336-338, feedback desired and questions

2015-04-02 Thread Daniel Bastos
​​ Exercise 336. Is (bundle "abc" 0) a proper use of the bundle function? What does it produce? Why? ​Solution. It's not a proper use. It produces nothing. It doesn't terminate. Because (drop ls 0)​ returns a list not smaller than ls, hence the recursion of bundle doesn't reach the base case. I