On Sat, Jun 9, 2012 at 11:41 AM, Lucas Marinho <lmari...@gmail.com> wrote:

> ((comp #(+ % 1) #(+ % 2)) 0)

I couldn't resist.

#(+ % 1) == inc

#(+ % 2) == (partial + 2)

They give much better-looking functional program. Hope you forgive me :-)

Jacek

-- 
Jacek Laskowski
Functional languages (Clojure), Java EE, and IBM WebSphere -
http://blog.japila.pl
"Never discourage anyone who continually makes progress, no matter how
slow." Plato

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