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. <div>
<br></div><div>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.'</div><div><br></div><div>Dave Yrueta</div><div><br>
</div><div><div><div><br><div class="gmail_quote">On Tue, Apr 28, 2009 at 6:25 AM, Stephen Bloch <span dir="ltr"><<a href="mailto:sbloch@adelphi.edu">sbloch@adelphi.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On Apr 27, 2009, at 5:29 PM, S Brown wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What I ended up doing was creating a helper function to insert-<br>
everywhere, which takes 3 arguments, the front of the word, the<br>
symbol, and the back of the word. insert-everywhere doesn't do<br>
anything except make the initial call to the insert-everywhere-helper<br>
function, which does the actual work of inserting the letter into the<br>
word.<br>
</blockquote>
<br></div>
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?<div class="im">
<br>
<br>
<br>
Stephen Bloch<br>
<a href="mailto:sbloch@adelphi.edu" target="_blank">sbloch@adelphi.edu</a><br>
<br></div><div><div></div><div class="h5">
_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme" target="_blank">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a><br>
</div></div></blockquote></div><br></div></div></div>