Values & References8 / 14
Up next

atom

;; an atom holds a value that can change over time
(def counter (atom 0))
(swap! counter inc)
(swap! counter inc)
;; @ (deref) reads the current value
(println @counter)
What you're solving

managed, mutable state