> So far, everything is working as I thought. But I also thought that apply > let me run a function on everything in a sequence. Other than "str", I could > not get this to work: > > user> (apply #(println %1) @visitors)
I think you are looking for direct invocation: (#(println %1) @visitors) your apply will end up doing sometihng like this: (#(println %1) "stu" "mary" "lawrence") since apply takes @visitors as a collection and passes each item as an argument to the function you give it. jack. -- 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