Quantcast
Channel: Clojure error when calling swap! on atom, trying 'conj this-number' - Stack Overflow
Browsing all 2 articles
Browse latest View live

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 Article



Clojure 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
Browsing all 2 articles
Browse latest View live




Latest Images