(map #(fn? (when-let [x (resolve (symbol %))] @x)) ["map", "first", "nofun"]) should do the trick. But before you go ahead and do this, make sure it's what you actually need.
-Per On Sun, Apr 4, 2010 at 3:06 PM, Manfred Lotz <[email protected]> wrote: > Hi there, > > 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) > > > How can I transpose, e.g. "first" to something so that I can feed fn? > with it? > > > > > > -- > Thanks, > Manfred > > > -- > 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 > > To unsubscribe, reply using "remove me" as the subject. > -- 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
