Quantcast
Channel: Updating Key of Atom in ClojureScript - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by jmargolisvt for Updating Key of Atom in ClojureScript

You already have the value in hand, so you can use partial functions.(swap! test-db update :points (partial + 5))(swap! another-test-db update :nums (partial apply str))Or more simply:(swap! test-db...

View Article



Updating Key of Atom in ClojureScript

just started Clojure this week and am banging my head against a wall on something. While I understand that nothing is mutable in Clojure, I don't often don't understand how to update the value of an...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>