Yes, I do mean to return anonymous function, I want to be able to map it over the vector of tags, ie. (map f [:title :venue_name]) and to get this
(#(zf/xml1-> % :title zf/text) #(zf/xml1-> % :venue_name zf/text) ) On Monday, July 8, 2013 9:33:40 PM UTC+2, Jeremy Heiler wrote: > > On July 8, 2013 at 5:39:14 AM, Vesna Petkovic > (vesna.p...@gmail.com<javascript:>) > wrote: > > (defn func [& tags](#(zf/xml1-> (xml-zipper tags) % zf/text))) > > As the exception states, you are passing 0 arguments to a function that > doesn't accept 0 arguments. The name of the function "datamodel$func$fn" > narrows it down to an anonymous function defined in the "func" function. > Why does that function not allow 0 arguments? It's because it requires one > argument, per the % inside it. Then it is invoked with no arguments. Do you > mean to return the anonymous function instead of invoking it? > -- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.