My guess is that when using a rest-param a call to next is involved thus realizing two elements of the sequence. A call to rest only realizes the first element:
user> (defn f [x] (println x) x) #'user/f user> (defn s [n] (lazy-seq (cons (f n) (s (inc n))))) #'user/s user> (def t (rest (s 0))) 0 #'user/t user> (def u (next (s 0))) 0 1 #'user/u -- 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/groups/opt_out.