Evaluates expr and outputs the form and its result to the debug log; returns
the result of expr.
(defmacro spy "Evaluates expr and outputs the form and its result to the debug log; returns the result of expr." [expr] `(let [a# ~expr] (log :debug (str '~expr " => " a#)) a#))
Comments top
No comments for spy. Log in to add a comment.