Display stuff in a pretty way (depending on the platform)
Display stuff in a pretty way (depending on the platform)
(pretty-print arg)
Display the given value, in a pretty way (depending on the platform) and return it
Usage:
(fn [arg]
- (do-stuff arg))
+ (pretty-print (do-stuff arg)))
Display the given value, in a pretty way (depending on the platform) and return it Usage: ```diff (fn [arg] - (do-stuff arg)) + (pretty-print (do-stuff arg))) ```
(print-group label arg)
Display a value in a grouped output and return it
Usage:
(fn [arg]
- (do-stuff arg))
+ (print-group "label" (do-stuff arg)))
Display a value in a grouped output and return it Usage: ```diff (fn [arg] - (do-stuff arg)) + (print-group "label" (do-stuff arg))) ```
(spy arg)
Display the type and the value of the given value and return it
Usage:
(fn [arg]
- (do-stuff arg))
+ (spy (do-stuff arg)))
Display the type and the value of the given value and return it Usage: ```diff (fn [arg] - (do-stuff arg)) + (spy (do-stuff arg))) ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close