Skip to content

Instantly share code, notes, and snippets.

@davidrupp
Last active August 29, 2015 14:19
Show Gist options
  • Save davidrupp/8ba1df41f479b60fa566 to your computer and use it in GitHub Desktop.
Save davidrupp/8ba1df41f479b60fa566 to your computer and use it in GitHub Desktop.
alter-var-root-constantly-1
(def thing 1) ; value of thing is now 1
; do some stuff with thing
(alter-var-root #'thing (constantly nil)) ; value of thing is now nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment