Hi,

On Oct 12, 10:18 pm, "Christian Vest Hansen" <[EMAIL PROTECTED]>
wrote:
> Some library functions are very amenable to currying; reduce, filter
> and map all come to mind.
>
> Here's a patch that implements partial application for reduce, for instance:

> (def sum (reduce +))
>
> What do you guys think?



have a look at partial in boot.clj

If I understood you're patch correctly, it's the same as

(def sum (partial reduce +))

Modifying every function seperatly to support partial application is
not very elegant in my opinion.


peter quade


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to