Fork me on GitHub
#clr
<
2023-01-25
>
bobcalco21:01:00

Anybody know a way to reflect on namespaces? I want to do the equivalent of (dir <ns>) but instead of it printing I want a list of strings or symbols of the public forms it contains.

Alex Miller (Clojure team)22:01:25

Clojure has dir-fn available for the data of dir , not sure if that's a thing in cljr

Alex Miller (Clojure team)22:01:31

and of course, that's just built on ns-publics and ns-aliases in clojure.core, if the equivalent exist

bobcalco14:01:33

Meant to get back to you sooner on this @U064X3EF3 but dir-fn works like a charm. It helps to read the clojure source! Thanks for the pointer.

clojure-spin 4