Hi, On Sun, Apr 04, 2010 at 10:06:12AM +0200, Manfred Lotz wrote:
> I can ask if something is an fn, like this: (fn? first) > > How do I do it when first is a string? > > Example: > > (def mylist '( "map", "first", "nofun")) > > This doesn't work, of course: > (map fn? mylist) Of course it does. It returns (false false false) telling you that no thing in the list is a function. > How can I transpose, e.g. "first" to something so that I can feed fn? > with it? See: resolve and ns-resolve. (resolve (symbol "first")) Sincerely Meikel PS: Es gibt auch eine clojure-de Gruppe. :) -- 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 To unsubscribe, reply using "remove me" as the subject.