Skip to content

Instantly share code, notes, and snippets.

@mwmitchell
Created August 17, 2011 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mwmitchell/1150671 to your computer and use it in GitHub Desktop.
Save mwmitchell/1150671 to your computer and use it in GitHub Desktop.
same-ole-same-ole.clj
(let [x 10
m {:id 1}
m (if (= (:id m) 1) (merge m {:id 2}) m)
m (if (< x 10) (merge m {:y true}) m)
m))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment