Created
March 11, 2012 06:15
-
-
Save bmmoore/2015255 to your computer and use it in GitHub Desktop.
fixpoint macro
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; using clojure.tools.macro | |
(defmacro mu [self body] | |
`(let [self# (promise) | |
impl# (symbol-macrolet [~self @self#] ~body)] | |
(deliver self# impl#) | |
impl#)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment