Skip to content

Instantly share code, notes, and snippets.

@ato
Created December 13, 2009 00:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ato/255178 to your computer and use it in GitHub Desktop.
Save ato/255178 to your computer and use it in GitHub Desktop.
(defmacro magic-this [form]
`(let [a# (atom nil)
~'this (fn [& args#] (apply @a# args#))]
(reset! a# ~form)
@a#))
((magic-this (m=+ 1 this)) 1 1 1 1 1)
;; => true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment