(defn-group fn-name & decls)Wrap function definition console group
use it like this:
-(defn my-function [arg] (do-stuff arg))
+(defn-group my-function [arg] (do-stuff arg))
Wrap function definition console group use it like this: ```diff -(defn my-function [arg] (do-stuff arg)) +(defn-group my-function [arg] (do-stuff arg)) ```
(defn-group-io fn-name & decls)Wrap function definition console group and log input and output
use it like this:
-(defn my-function [arg] (do-stuff arg))
+(defn-group-io my-function [arg] (do-stuff arg))
Wrap function definition console group and log input and output use it like this: ```diff -(defn my-function [arg] (do-stuff arg)) +(defn-group-io my-function [arg] (do-stuff arg)) ```
(defn-io fn-name & decls)Log input and output of a function definition
use it like this:
-(defn my-function [arg] (do-stuff arg))
+(defn-io my-function [arg] (do-stuff arg))
Log input and output of a function definition use it like this: ```diff -(defn my-function [arg] (do-stuff arg)) +(defn-io my-function [arg] (do-stuff arg)) ```
(fn-group label args & body)Wrap function console group
use it like this:
-(fn [arg] (do-stuff arg))
+(fn-group "some label to help while debugging" [arg] (do-stuff arg))
Wrap function console group use it like this: ```diff -(fn [arg] (do-stuff arg)) +(fn-group "some label to help while debugging" [arg] (do-stuff arg)) ```
(fn-group-io label args & body)Wrap function console group and log input and output
use it like this:
-(fn [arg] (do-stuff arg))
+(fn-group-io "some label to help while debugging" [arg] (do-stuff arg))
Wrap function console group and log input and output use it like this: ```diff -(fn [arg] (do-stuff arg)) +(fn-group-io "some label to help while debugging" [arg] (do-stuff arg)) ```
(fn-input label args & body)(fn-io label args & body)Log input and output of a function
use it like this:
-(fn [arg] (do-stuff arg))
+(fn-io "some label to help while debugging" [arg] (do-stuff arg))
Log input and output of a function use it like this: ```diff -(fn [arg] (do-stuff arg)) +(fn-io "some label to help while debugging" [arg] (do-stuff arg)) ```
(fn-output label args & body)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 |