Skip to content

Instantly share code, notes, and snippets.

@bmmoore
Created March 11, 2012 06:15
Show Gist options
  • Save bmmoore/2015255 to your computer and use it in GitHub Desktop.
Save bmmoore/2015255 to your computer and use it in GitHub Desktop.
fixpoint macro
; 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