On Wed, Apr 1, 2009 at 6:00 AM, David Sletten <da...@bosatsu.net> wrote:

> [snip]
>
> Here's 'length' again:
> (((fn [m]
>     ((fn [future]
>        (m (fn [arg]
>             ((future future) arg))))
>      (fn [future]
>        (m (fn [arg]
>             ((future future) arg)))) ))
>   (fn [rec]
>     (fn [l]
>       (if (empty? l)
>         0
>         (inc (rec (rest l)))) )))
>  '(a b c d e))
> => 5
>
> And 'reverse':
> (((fn [m]
>     ((fn [future]
>        (m (fn [arg]
>             ((future future) arg))))
>      (fn [future]
>        (m (fn [arg]
>             ((future future) arg)))) ))
>   (fn [rec]
>     (fn [l]
>       (cond (empty? l) '()
>             (empty? (rest l)) (list (first l))
>             :else (cons (first (rec (rest l)))
>                         (rec (cons (first l)
>                                    (rec (rest (rec (rest l)))) )))) )))
>  '(a b c d e))
> => (e d c b a)
>
> Breathtaking in its elegance!
>

Indeed! :)


>
> I'm going to move forward with the negotiations, but I need to know
> if you, the Clojure community, are on board here. Ultimately the
> decision is going to come down to whether or not you find the APRiL
> 1.0 technology useful. Try it out and let me know your opinions.
>

I think I'll wait for APRiL 2.0. I often find that when I jump right into
version 1.0 of a product, I'm made a fool!


>
> Aloha,
> David Sletten
>

Paul

--~--~---------~--~----~------------~-------~--~----~
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
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