On Dec 30, 10:29 pm, falcon <shahb...@gmail.com> wrote:
> (doc fn) gives me a description of the function, and information about
> function arity. I assumed the description and arity were part of
> metadata but (meta fn) only returns nil (for a few functions I tried).
Be sure to var-quote the function, i.e. don't use (meta print), but
(meta #'print).
For this example, this returns a dictionary containing an entry for
the key :arglists, so you can get the argument lists specified for the
function with (:arglists (meta #'whatever)).
--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---