A macro for dumping values to stdout and logs. Can be used inline.
(let [path (inspect (System/getenv "CLOJURE_HOME"))]
(clojure.string/split path #"/"))
Output when executed via REPL:
(System/getenv "CLOJURE_HOME") is "/usr/share/clojure"
Jul 03, 2018 2:20:59 PM clojure.tools.logging$eval579$fn__582 invoke
INFO: (System/getenv "CLOJURE_HOME") is /usr/share/clojure
=> ["" "usr" "share" "clojure"]
Inline example:
(-> (System/getenv "CLOJURE_HOME")
(inspect)
(clojure.string/split #"/"))
giving the same result as above.
The MIT License (MIT)
Copyright © 2018 Motiva AI
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close