Ok, I'm a little stuck with this, can I do what I'm trying to do with this part of the code below:
(recur (conj (get-links (first links)) (rest links))))
get-links returns a sequence of URLs that is passed to the original call of the link processes, and then should be returned.
The first link that I feed in works, but then the second link in which I try to connect one sequence to another gives me the following error.
" Clojure.lang.LazySeq@xxxxxxx "
Now I am wondering if this refers to a link to a command to generate βrestβ (rest links) of an unappreciated sequence?
(defn process-links [links] (if (not (empty? links)) (do (if (not (is-working (first links))) (do (println (str (first links) " is not working")) (recur (rest links))) (do (println (str (first links) " is working")) (recur (conj (get-links (first links)) (rest links))))))))
If I am completely mistaken in my approach to this, let me know.
source share