Created
October 31, 2012 17:31
-
-
Save jaycfields/3988510 to your computer and use it in GitHub Desktop.
the-ns
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns blog) | |
(def all-updates (atom {})) | |
(def last-update (atom {})) | |
(defn process-update [{:keys [src] :as update}] | |
(swap! all-updates update-in [src] conj update) | |
(swap! last-update assoc src update)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment