Skip to content

Instantly share code, notes, and snippets.

@hussein hussein/gist:2173859
Created Mar 23, 2012

What would you like to do?
mutating in Clojure
(let [master (get-it-some-where)
slave (atom (:slave master))]
;; faked logic
(if (< 0.7 (rand))
(swap! slave assoc :status :success)
;; save to mongo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.