Actually, that doesn't seem to be the case, seems to have something to do
with the closure affecting macro expansion, but again, need someone smarter
to explain:

user> (defn plus-x [x] (fn [y] (+ x y)))
#'user/plus-x

user> (eval (mapper (plus-x 1) [1 2 3]))
; Evaluation aborted.

user> (eval (mapper (fn [x] (+ 1 x)) [1 2 3]))
(2 3 4)


On Thu, Apr 14, 2011 at 10:17 AM, Mark Rathwell <mark.rathw...@gmail.com>wrote:

>
> I think it has to do with partial's use of apply, but you would need
> someone smarter than me to tell you for sure ;)
>
>
> On Thu, Apr 14, 2011 at 9:58 AM, David McNeil <mcneil.da...@gmail.com>wrote:
>
>> Mark - Thanks. I am able to permute it to make it work. However, I
>> cannot explain why the original code fails.
>>
>> -David
>>
>> --
>> 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
>>
>
>

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