On May 27, 11:57 pm, kinghajj <kingh...@gmail.com> wrote:
> Example:
> (def add5 ($ + 5))
>
> (add5 3)

I love partial application in haskell. But do not see the need for it
in clojure with its succinct syntax for anonymous functions:

(def add5 #(+ 5 %1))

(add5 3)

Besides clojure's anonymous function syntax allows you to replace any
argument, not just the last one, like your partial macro.

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