Skip to content

Instantly share code, notes, and snippets.

@amalloy
Forked from mwmitchell/gist:1150671
Created August 17, 2011 02:28
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 amalloy/1150681 to your computer and use it in GitHub Desktop.
Save amalloy/1150681 to your computer and use it in GitHub Desktop.
same-ole-same-ole.clj
(let [x 10
m {:id 1}]
(-> m
(given (comp #{1} :id) assoc :id 2)
(given (< x 10) assoc :y true)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment