Skip to content

Instantly share code, notes, and snippets.

@davidrupp
Created April 23, 2015 16:14
Show Gist options
  • Save davidrupp/78dd79fb608b9130c6d4 to your computer and use it in GitHub Desktop.
Save davidrupp/78dd79fb608b9130c6d4 to your computer and use it in GitHub Desktop.

Revisions

  1. davidrupp created this gist Apr 23, 2015.
    6 changes: 6 additions & 0 deletions gistfile1.clj
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,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))