Debug `let` and `comp` forms
masterThe dbg macro provides visibility into binding forms and function compositions:
letforms: Prints every binding in theletblock.compforms: Prints the result of each function in the composition chain.
;; Debugging let
(dbg (let [a (take 5 (range))
{:keys [b c d] :or {d 10 b 20 c 30}} {:c 50 :d 100}]
[a b c d]))
;; Debugging comp
(def c (dbg (comp inc inc +)))
(c 10 20) ; Prints intermediate steps