Suppose we define a function called sq: (defn sq [x] (do (println "sq") (* x x)))
I wanted sq to print it's own name when run; to make it do so I inserted the name as a string. Is there some way to dynamically determine the name and so avoid using the string? Similarly, is it possible to define a function name-of so that (name-of sq) returns "sq", etc ? Thank you, drc -- 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