-
-
Save kindlychung/804028ca4aa5509ab3d4 to your computer and use it in GitHub Desktop.
This file contains 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
(defn echo-watch | |
[key identity old new] | |
(println key old "=>" new)) | |
(def sarah (atom {:name "Sarah" :age 25})) | |
(add-watch sarah :echo echo-watch) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment