I trying to grok partial and -> so I have the following example.

(defn f[x y] (+ x y))

((partial f 2) 3) works as expected , returning 5

but if I try to use ->

(-> 3 (partial f 2)) 

I get #<core$partial$fn__3796 clojure.core$partial$fn__3796@4c629f43>

But if I first define

(def fp (partial f 2))

then

(-> 3 fp) returns 5 as expected

What's going on ? 

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