Fork me on GitHub
#beginners
<
2016-01-04
>
jcomplex21:01:26

hiya quick question. I have this (defonce accounts (atom (array-map))) and it gets populated as time goes on. I am writing tests and want to clear this out before and after a test. Any ideas? Do I use empty or some other clojure logic?

roberto21:01:09

you can also do a reset

roberto21:01:26

(reset! accounts (array-map))

jcomplex21:01:58

@roberto thank you that did the job

roberto21:01:13

glad it helped