How about throwing in a simple macro?<div><br></div><div>Robby<span></span><br><br>On Sunday, July 14, 2013, Richard Lawrence wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Roger,<br>
<br>
This is cool, thanks for putting it together!<br>
<br>
Roger Rousseau <<a href="javascript:;" onclick="_e(event, 'cvml', 'th3rac25@gmail.com')">th3rac25@gmail.com</a>><br>
writes:<br>
<br>
> It's largely inspired from the Clojure version and the Racket documentation<br>
> I would be grateful for any corrections/suggestions before I send a pull<br>
> request to get this online<br>
<br>
Here are a couple of (tiny) suggestions:<br>
<br>
Lines 15--18: The comment here is wrong. Text enclosed in #| ... |#<br>
isn't a multi-line string, just a comment.<br>
<br>
Also, I think it would be good to include an example of an S-expression<br>
comment using `#;', which is a particularly useful form of comment.<br>
<br>
Line 118: Under "Lists are linked-list data structures", it might be better to<br>
use `list' as a constructor rather than `quote', e.g.,<br>
<br>
(list 1 2 (+ 1 2)) ; => '(1 2 3)<br>
<br>
since (a) `quote' has already appeared, and (b) `list' is probably what<br>
you want in most contexts.<br>
<br>
Line 133: Change "Use 'fold' to reduce them" to match the function name:<br>
`foldl'.<br>
<br>
Best,<br>
Richard<br>
<br>
<br>
____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
</blockquote></div>