<br><br><div><span class="gmail_quote">2007/7/23, Carl <<a href="mailto:c.groner@gmail.com">c.groner@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Wow, no takers, huh.<br>With all the talk that has been going around about lisp lately, this<br>list is surprisingly quiet.<br><br><br></blockquote></div><br>Uhm... I liked your solution, even though I'm a newbie. Thanks for submitting it, you helped me to learn some new functions.
<br>And yes, almost anyone is trying to solve the quiz (me included) but at least reading the few solutions of others is helping me a lot.<br><br>Off topic: I am reading Paul Graham's ANSI Common Lisp  and I have a little question: why does he uses a lot (at least until chapter 4) "and" clauses when I think he should use the "when" macro? For example, in this code snip from figure 
4.1:<br><br>;; This is a binary search algorithm as you may guess.<br>(defun bin-search (obj vec) <br>  (let ((len (length vec)))<br>    (and (not (zerop len))  ;Here is the and clause that I may change for a when<br>            (finder obj vec 0 (- len 1))))) 
<br><br>(defun finder (obj vec start end)<br>  ...)<br><br>I've read that at least three times I think and it seems that there will be more.<br>I know that the and clause gives the desired behavior of returning the last value that satisfies it or the first one that doesn't, but I would have used a when for some of the cases I've read (it is more readable for me, I think). 
<br>Is he using the and clause for some reason that eludes me or is it just a personal taste?<br>Thanks.<br>