There might be a neater way, but
(name (:name (meta (var reduce))))
=> "reduce"
Jony
On Saturday, 14 February 2015 16:11:48 UTC, Cecil Westerhof wrote:
>
> In Bash I use the following construct:
> printf "${FUNCNAME} needs an expression\n"
>
> In this way I do not have to change the print statement when the name of
> the function changes. Is something like this also possible in clojure?
>
> --
> Cecil Westerhof
>
--
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
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.