(defn func [arg] (println "func: " arg))

I'd like to invoke 'func' using the string name of the function,
something like:
("func" "mytag")

Obviously, this would be answered with "java.lang.ClassCastException:
java.lang.String cannot be cast to clojure.lang.IFn"

I need to find a way to convert the string "func" to "IFn" somehow.
((make-IFn "func") "mytag")

How is this done?

Thanks


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to