[plt-scheme] Re: HTDP Exercise 12.4.2 ... Help!
You deserve a lot of credit for your solution. However, if you're able to
devise an alternate solution using the design recipe, as Steven suggests,
then you'll be much better equipped to solve the 'Challenge' part of
Chapter 16's final exercise. Otherwise, I think you'll find it difficult,
if not impossible.
If you can limit the number of arguments accepted by your auxiliary
functions to just two, then you will have managed to solve 12.4.2
'correctly.'
Dave Yrueta
On Tue, Apr 28, 2009 at 6:25 AM, Stephen Bloch <sbloch at adelphi.edu> wrote:
>
> On Apr 27, 2009, at 5:29 PM, S Brown wrote:
>
> What I ended up doing was creating a helper function to insert-
>> everywhere, which takes 3 arguments, the front of the word, the
>> symbol, and the back of the word. insert-everywhere doesn't do
>> anything except make the initial call to the insert-everywhere-helper
>> function, which does the actual work of inserting the letter into the
>> word.
>>
>
> That's one reasonable way to do it. It requires a little more ingenuity
> and creativity than just following the recipe; how would you have solved it
> if you hadn't had that particular flash of insight?
>
>
> Stephen Bloch
> sbloch at adelphi.edu
>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20090428/41193377/attachment.html>