John,

On Tue, Oct 27, 2009 at 6:10 PM, John Harrop <[email protected]> wrote:

> On Tue, Oct 27, 2009 at 1:39 PM, Emeka <[email protected]> wrote:
>
>> On Sun, Oct 25, 2009 at 4:57 PM, MarkSwanson 
>> <[email protected]>wrote:
>>
>>>
>>> Hello,
>>>
>>> Someone recently posed the question: (why doesn't this work)
>>> (into {} (map #([% (* % %)]) [1 2 3 4]))
>>>
>>>
>> Is this actually a Vector problem or the limitation of the anonymous
>> function?
>>
>
> Neither. It's a limitation of the #() read-macro. (fn [x] [x (* x x)])
> works just fine.
>
Is #() read-macro not an anonymous function?

Regards,
Emeka

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
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