Last active
March 14, 2017 17:34
-
-
Save hkjels/90c689754bf8f5520f9507d6f0a7e2d7 to your computer and use it in GitHub Desktop.
Log all inputs to console or REPL, the input is returned for further manipulation
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
(defn log | |
"Log all inputs to console or REPL, the input is returned for further manipulation" | |
[& in] | |
(do | |
(apply #?(:clj println :cljs js/console.log) in) | |
in)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment