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 ArticleUpdating 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
More Pages to Explore .....