Created
May 6, 2018 03:09
-
-
Save tomisme/aaebd33a33631482bee1162018418c19 to your computer and use it in GitHub Desktop.
get available namespaces in clojurescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; self-hosted env | |
(-> @cljs.env/*compiler* :cljs.analyzer/namespaces keys) | |
;; non-self-hosted env | |
(defmacro namespaces [] `'~(cljs.analyzer.api/all-ns)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment