My current method: if there’s a function that I know has an bug, I copy bits and pieces of it into the REPL and evaluate to see if the output is what I expect. To set it up, I have to def the arguments to the function as dummy input. Not terribly time-consuming, but I know there’s a more efficient way.
Any suggestions?
Does this macro help? It turns a let into a series of defs, so that you can evaluate the subexpressions:
I wrote an explanation here:
http://www.learningclojure.com/2010/09/astonishing-macro-of-narayan-singhal.html