<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jul 6, 2012, at 5:48 AM, Sean Kemplay wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Lucida Grande'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><p>I am going through htdp first edition (at chapter 17 which refers to arrangements from chapter 12 which is why I revisited the exercise). Would you suggest continuing with this edition or moving to the draft second edition</p></span></blockquote><div><br></div><div>I would switch to '2e' if I were you. It's more fun but you will learn mostly the same ideas. ('2e' provides an event-driven program context as playground for developing design skills. '1e' provides no real context.) </div><div><br></div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Lucida Grande'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><p>Do you mean the contract for insert-everywhere/word should be symbol word -> list of words? And will the words returned be the same length? Ie am I aiming for the same result as the current definition?</p></span></blockquote></div><br><div>Letter List-of-Words -> List-of-Words</div><div>insert letter l in all positions in all words in lw </div><div><br></div><div>(define (insert-everywhere/all-words l lw) </div><div> lw)</div><div><br></div><div><br></div><div>Letter Word -> List-of-Words </div><div>insert letter l in all positions in one word (w) </div><div><br></div><div>(define (insert-everywhere/1word l w) </div><div> (list w))</div><div><br></div><div>;; --- </div><div><br></div><div>I recommend you make up examples (with check-expect) first and send them back to the list.</div><div>The above 'stub' implementations should fail most of your examples. (A stub/silly/stupid/obviously-wrong</div><div>implementation is something '2e' suggests.) </div><div><br></div><div><br></div><div><br></div><div><br></div></body></html>