讀取原子值

要讀取原子的值,只需輸入原子的名稱,並在其前面加上 @:

@counter ; => 0

一個更大的例子:

(def number (atom 3))
(println (inc @number))
;; This should output 4