[plt-scheme] HtDP 12.4.2 Design Recipe Blues

Mark Engelberg mark.engelberg at gmail.com
Sun Mar 2 21:10:07 EST 2008


Showing your test cases would be helpful, so we can see exactly what you've
tested.

One thing I notice right off the bat is that your function
insert-everywhere/in-all-words doesn't fulfill the stated contract.
In particular, the else clause doesn't return a list of words.
(consing a list of words on to a list of words doesn't yield another list of
words.  You probably meant to use append.)

--Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.cs.brown.edu/pipermail/plt-scheme/attachments/20080302/6c48d80a/attachment.htm


More information about the plt-scheme mailing list