ClojureScript - list functions of a namespace

吃可爱长大的小学妹 提交于 2019-12-12 03:55:17

问题


How do I list the functions/vars of a ClojureScripts namespace ?

This is a question that has an equivalent for Clojure, but the solutions mentioned did not work for me.


回答1:


clojure.repl/dir works for me with latest ClojureScript (1.7.228)




回答2:


Fow now I am doing :

(.keys js/Object my.ns)

As it looks like a namespace is an js object.



来源:https://stackoverflow.com/questions/35038798/clojurescript-list-functions-of-a-namespace

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!