On Dec 20, 3:55 pm, David Cabana <[email protected]> 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/[email protected]/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 [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

Reply via email to