What about a golf competition on the golf competition scorer? Then we
can evaluate that using;
(defmacro score-scorer [scorer] ... )
 :)

 - Adrian


On Thu, Sep 10, 2009 at 8:12 AM, Christophe Grand<christo...@cgrand.net> wrote:
>
> I propose to compute the score of a golf competition entry using this 
> function:
> (defn score [expr] (count (tree-seq coll? #(if (map? %) (apply concat
> %) (seq %)) expr)))
>
> Thus, shorter names and literal anonymous closures won't change the score.
>
> On Thu, Sep 10, 2009 at 1:50 AM, Timothy
> Pratley<timothyprat...@gmail.com> wrote:
>>
>>> (zero? (rem % d))
>> (= 0 (rem % d))
>>
>>>     (- d 1)
>> presumably you chose this instead of (dec d) because it converts one
>> real character into whitespace
>>
>> so if you make this:
>>>      (inc d))))
>> (+ d 1)
>> You can convert another whitespace! [arguably its a meaningful
>> whitespace but lets ignore that for now]
>>
>> Oh and you could call your function l instead of lpf :)
>> Ok so I don't have any useful suggestion sorry... but interesting to
>> read your post, That recur inside a lambda was cute!
>> >
>>
>
>
>
> --
> Professional: http://cgrand.net/ (fr)
> On Clojure: http://clj-me.blogspot.com/ (en)
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to