@neural.works.com
I'm confused by the question. By "very first value of my ratom"
• I assume you mean the ratom c
in doit
• if so, do you mean you want the value in c
before the swap!
in btn
?
@mikethompson Hi Mike sorry about the confusion!! you are right how i get the value o 'c' before the swap! ?
@neural.works.com You can't. Once the swap happens it's swapped. The old value isn't retained. You need to store it elsewhere and not update it. Something like
(let [init 0
c (r/atom init)]