 (fact @my-number-atom => 42)
 
 ;;;; ___________________________________________________________________________
-;;;; `reset!`
+;;;; Atoms: `reset!`
 
 (reset! my-number-atom 100)
 (fact @my-number-atom => 100)

(fact @my-number-atom => 64)


;; Maps in atoms

(def my-map-atom (atom {}))


                       :address {:line-1 "78 Green Lane"
                                 :line-2 "New Town"}})

(swap! my-map-atom assoc-in [:address :line-1] "780 Green Lane")
(fact @my-map-atom => {:first-name "Bob"
                       :address {:line-1 "780 Green Lane"
                                 :line-2 "New Town"}})

;;;; ___________________________________________________________________________
;;;; Atoms: `compare-and-set!`

(fact @my-number-atom => 64)
(fact (compare-and-set! my-number-atom 99 42) => false)
