Hi, I'm following "The Reasoned Schemer" and implementing the answers in Racket, but for one answer Racket seems to be returning the results in the wrong order. It's number 52, commented out here:<div><br>
</div><div><a href="https://github.com/rodnaph/the-reasoned-schemer/blob/master/01-playthings.rkt#L215">https://github.com/rodnaph/the-reasoned-schemer/blob/master/01-playthings.rkt#L215</a></div><div><br></div><div>The answer the book gives is:</div>
<div><br></div><div><span style="color:rgb(153,153,136);font-family:'Bitstream Vera Sans Mono',Courier,monospace;font-size:12px;font-style:italic;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">(tea #t) (cup #t) (#f #t)</span></div>
<div><span style="color:rgb(153,153,136);font-family:'Bitstream Vera Sans Mono',Courier,monospace;font-size:12px;font-style:italic;line-height:16px;white-space:pre;background-color:rgb(255,255,255)"><br></span></div>
<div><span style="font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif">but the answer Racket gives is</font></span></div><div><span style="color:rgb(153,153,136);font-family:'Bitstream Vera Sans Mono',Courier,monospace;font-size:12px;font-style:italic;line-height:16px;white-space:pre;background-color:rgb(255,255,255)"><br>
</span></div><div><span style="background-color:rgb(255,255,255);color:rgb(153,153,136);font-family:'Bitstream Vera Sans Mono',Courier,monospace;font-size:12px;font-style:italic;line-height:16px;white-space:pre">(#f #t)</span><span style="color:rgb(153,153,136);font-family:'Bitstream Vera Sans Mono',Courier,monospace;font-size:12px;font-style:italic;line-height:16px;white-space:pre;background-color:rgb(255,255,255)"> (cup #t) </span><span style="background-color:rgb(255,255,255);color:rgb(153,153,136);font-family:'Bitstream Vera Sans Mono',Courier,monospace;font-size:12px;font-style:italic;line-height:16px;white-space:pre">(tea #t)</span></div>
<div><span style="background-color:rgb(255,255,255);color:rgb(153,153,136);font-family:'Bitstream Vera Sans Mono',Courier,monospace;font-size:12px;font-style:italic;line-height:16px;white-space:pre"><br></span></div>
<div><span style="line-height:16px;white-space:pre;background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif">Can anyone spot what I've done wrong, or possibly explain the different behaviours?</font></span></div>
<div><span style="line-height:16px;white-space:pre;background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="line-height:16px;white-space:pre;background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif">Thanks,</font></span></div>
<div><span style="line-height:16px;white-space:pre;background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="line-height:16px;white-space:pre;background-color:rgb(255,255,255)"><font face="arial, helvetica, sans-serif">rod.</font></span></div>