Skip to content

Instantly share code, notes, and snippets.

@nforrester
nforrester / README.md
Last active October 15, 2017 05:13 — forked from cdmuhlb/README.md
Bayesian Blocks Algorithm
(defmacro preval (&rest stuff) `(print ,stuff))
;;;; This Common Lisp macro is useful for debugging.
;;;; Rather than turning a statement like
;;;; (+ 2 3 (* 2 5))
;;;; into
;;;; (+ 2 3 (print (* 2 5)))
;;;; and back again for debugging, you can do this
;;;; (+ 2 3 (preval * 2 5))