3 ms·
swap! in Clojure is analogous to callf. (swap! x + 5) atomically increments x by 5. (swap! x concat [3 4]) atomically concats the seq x and the vector [3 4].
by divs1210 10y ago
swap! in Clojure is analogous to callf.
(swap! x + 5) atomically increments x by 5.
(swap! x concat [3 4]) atomically concats the seq x and the vector [3 4].