Skip to content

Commit 2ee5238

Browse files
committed
add atom functions
1 parent 3d3cf5a commit 2ee5238

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

content/reference/atoms.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,16 @@ user=> "Elapsed time: 941.445 msecs"
4242
4343
user=> "Elapsed time: 0.044 msecs"
4444
----
45+
46+
== Related functions
47+
48+
Create an Atom: https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/atom[atom]
49+
50+
Examine an Atom: https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/deref[deref] _(see also the +@+ <<reader#,reader>> macro)_
51+
52+
Change Atom state: https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/swap![swap!] https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/reset![reset!] https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/swap-vals![swap-vals!] https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/reset-vals![reset-vals!]
53+
54+
Validators: https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/set-validator![set-validator!] https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/get-validator[get-validator]
55+
56+
Watchers: https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/add-watch[add-watch] https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/remove-watch[remove-watch]
57+

0 commit comments

Comments
 (0)