Although it doesn't directly answer your question, I have used (with-
meta) to attach debug information to generated functions in the past.
If you are writing function combinators you can even do this
recursively by taking the existing debug info from a function that you
generated before and combine it new debug info for the function you
are currently generating.

For an actual example on how to do this, see (and-matcher) and the
surrounding matcher functions here:

https://github.com/stathissideris/clarity/blob/master/src/clarity/structure.clj

Stathis


On Nov 3, 9:59 pm, AndyK <andy.kri...@gmail.com> wrote:
> Is it possible to print information about a function from within the
> repl? For example, after using comp or partial to create new
> functions, can you display the arity, the source, etc? I'm trying to
> debug a problem and it would be handy to be able to check that my
> dynamic funcitons are what I think they are.
>
> thx

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