 (swap! my-number-atom inc) ; (inc 1)
 (fact @my-number-atom => 2)
 
+;;;; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 ;;;; Supplying args to the swap function:
 
 (swap! my-number-atom + 10) ; (+ 2 10)

  (:require [midje.sweet :refer :all]))

;;;; ___________________________________________________________________________
;;;; Atoms: `atom`, `deref`, `@` and `swap!`

(def my-number-atom (atom 0))


(fact @my-map-atom => {:first-name "Bob"
                       :address {:line-1 "37 High Street"}})

;;;; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
;;;; `compare-and-set!`

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