<div>Hi all,</div>  <div>&nbsp;</div>  <div>I am trying to learn HtDP by myself, and like Dave Yrueta I am stumped by 12.4.2.&nbsp; It seems like such a simple problem---insert a letter x into a list of words---but it's really a killer.&nbsp; I'd be very grateful for any suggestions.</div>  <div>&nbsp;</div>  <div>;FUNCTION: "insert-everywhere/in-all-words"</div>  <div>&nbsp;</div>  <div>;Data Definition:<BR>; a WORD is either (1) empty, or (2) (cons s w) where s is a symbol and w is a word</div>  <div>&nbsp;</div>  <div>;Contract: <BR>;insert-everywhere/in-all-words : symbol list-of-words --&gt; list-of-words</div>  <div>&nbsp;</div>  <div>; Purpose: to insert a symbol between every letter of every word, e.g. X, AT--&gt;XAT, AXT, ATX.</div>  <div>&nbsp;</div>  <div>;Function Template: <BR>(define (insert-everywhere/in-all-words s low)<BR>&nbsp; (cond<BR>&nbsp;&nbsp;&nbsp; [(empty? (rest low))...]<BR>&nbsp;&nbsp;&nbsp; [else ...(first low)...insert-everywhere/in-all-words s
 (rest low)]))<BR></div>  <div>Note: </div>  <div>It is suggested to use "append", which is easy one or two times---(append x&nbsp;word) or&nbsp;(append&nbsp;(append&nbsp;(first word) x) (rest word))----but I can't see how to use this recursively for an arbitrary number of letters and words.&nbsp; </div>  <div>&nbsp;</div>  <div>The fact that the "hint" refers to the keyword list, which the book hasn't covered yet,&nbsp;makes me wonder if it's even possible to answer this problem, given what we know so far...</div>  <div>&nbsp;</div>  <div>Thanks very much, </div>  <div>&nbsp;</div>  <div>Cooke</div><p>&#32;
      <hr size=1>Looking for last minute shopping deals? <a href="http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping"> 
Find them fast with Yahoo! Search.</a>