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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |