Created
November 13, 2015 12:33
-
-
Save kurogelee/14441b0cf1cc87761c02 to your computer and use it in GitHub Desktop.
Clojure1.7から入ったvolatile!とは? ref: http://qiita.com/kurogelee/items/056c2501fcc9ca1fcc93
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
(def v (volatile! {:a 1})) | |
(vswap! v assoc :b 2) | |
(vreset! v {:c 3}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment