Hi Mike, I have read up on atoms and used swap! to set the urls2 vector atom in my code. Thanks.
One problem remains though: I can't retrieve the atom vector's items *(nth urls 10)* throws the following exception java.lang.UnsupportedOperationException: nth not supported on this type: Atom and *(doseq [x urls] (println x))))* java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Atom Philippe Philippe Le jeudi 14 août 2014 18:49:20 UTC+2, Mike Fikes a écrit : > > Read up on atoms. The results of your conj call are being discarded. > > For example, check out the behavior of this: > > (def urls2 (atom [])) > (swap! urls2 conj "http://foo.bar") > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.