Created
August 10, 2011 20:36
-
-
Save arohner/1138179 to your computer and use it in GitHub Desktop.
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
(defmacro inspect | |
"prints the expression '<name> is <value>', and returns the value" | |
[value] | |
`(let [result# ~value] | |
(println '~value "is" (with-out-str (clojure.pprint/pprint result#))) | |
result#)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment