Answer by Arthur Ulfeldt for Clojure error when calling swap! on atom, trying...
conj behaves differently depending on the type of collection it is adding elements to. In your first example it is adding elements to a map and needs A key and a value in a collection. In your REPL...
View ArticleClojure error when calling swap! on atom, trying 'conj this-number'
I want a map in an atom that can keep track of times as Unix time stamps. So, in my main function I have: (defn -main [& args](println "Server is starting")(def port (Integer/parseInt (first...
View Article
More Pages to Explore .....