To define an atom, use an ordinary def, but add an atom function before it, like so:
def
atom
(def counter (atom 0))
This creates an atom of value 0. Atoms can be of any type:
0
(def foo (atom "Hello")) (def bar (atom ["W" "o" "r" "l" "d"]))