Is there some way to see what has already been defined in a clojure session (equivalent to calling ls())? Let’s say that I create a few objects:
(def x 1)
(def y 2.2)
(def plus-one (fn [x] (+ x 1)))
Is there a command that can be run to show me that these now exist in the user namespace?
I am doing all the assignments in user namespace.
;; To see all the public intern mappings in the user namespace.
Now let’s define a function which is not public
When you call ns-publics function. It will not show foobar function in the mappings.
To see the intern mappings for the namespace. Use (ns-interns ‘YOUR-NAMESPACE)