dynamic var | since v0.0-927 | Edit |
A var representing the function used to print output, which may differ
between runtime environments. Use enable-console-print!
to
set it to print to console/stdout.
(enable-console-print!)
(println "printed to stdout in Node, or to browser console")
Each runtime environment provides a different way to print output. Whatever function *print-fn* is bound to will be passed any Strings which should be printed.
(defonce
^{:dynamic true}
*print-fn* nil)