Jim wrote:
> On 27/08/13 10:39, Erebus Mons wrote:
>> I am looking for a function stringify that would do the following
>>
>> user> (stringify some-func)
>> "some-func"
>
> (-> #'some-func
> meta
> :name
> str)
>
> (defn stringify [func]
> (-> func
> var
> meta
> :name
> str))
This gives me the same error in the function:
user> (defn stringify [func]
(-> func
var
meta
:name
str))
CompilerException java.lang.RuntimeException: Unable to resolve var: func in
this context, compiling:(/tmp/form-init6959523461952831160.clj:2:3)
user> *clojure-version*
{:major 1, :minor 5, :incremental 1, :qualifier nil}
user>
>
>
>
> Jim
>
--
--
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/groups/opt_out.