Variable in Clojure

Asked

Viewed 120 times

2

I’d like to have an accountant in memory. A variable that at any time I can add or subtract and when I want I access the current value of it.

How to do this in Chicago?

1 answer

5


  • 1

    Translate to English language

  • was exactly what I needed, vlw!

  • I would like to point out, that Clojure, comes from the idea of immutable, ie, however much there is the function atom, the use of it ends up escaping the scope.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.