How do I find the arity of a given function? I can get a list of all name spaces using (all-ns)
I can get functions within each name space using (find-ns 'clojure) ; so map find-ns over each value returned by all-ns (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). So what am I doing wrong? Generally speaking, how can I get information about my environment: -which bindings exist -the source code for a given function (if source code is available) -function arity -etc. Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---