On Dec 20, 3:55 pm, David Cabana <drcab...@gmail.com> wrote:
> 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?

There's this: http://www.mail-archive.com/clojure@googlegroups.com/msg13018.html

Of course some functions don't have a name.

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