On Tue, Oct 27, 2009 at 1:39 PM, Emeka <emekami...@gmail.com> wrote: > On Sun, Oct 25, 2009 at 4:57 PM, MarkSwanson <mark.swanson...@gmail.com>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. P.S. *please* trim quoted text. I've noticed a lot of users of this list leaving large wads of quoted text at the bottoms of their posts after the portions they've replied to. Ordinarily it doesn't bother me much; I delete it if I reply. But in this case there were hundreds of lines of it and the gmail interface doesn't seem to support shift-pgdn, so ... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---