Search code examples
clojureclojure-contrib

How do you get all the functions defined in the namespace in Clojure?


I want to see all the functions defined in the current namespace. Is there a function I can call in the REPL that can answer this question?


Solution

  • You can use the ns-map function along with the *ns* variable.

    (ns-map *ns*)
    

    All the namespace functions are outlined on the clojure.org namespaces page.