Skip to content

Instantly share code, notes, and snippets.

@davidrupp
Created April 23, 2015 16:14
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 davidrupp/78dd79fb608b9130c6d4 to your computer and use it in GitHub Desktop.
Save davidrupp/78dd79fb608b9130c6d4 to your computer and use it in GitHub Desktop.
alter-var-root-constantly-6
(def thing 1)
; these all happen to work, but ... yuck
(alter-var-root #'thing #(if %1 nil))
(alter-var-root #'thing #(last [%1 nil]))
(alter-var-root #'thing #(do %1 nil))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment