On Thu, 2011-10-13 at 21:38 -0700, mmwaikar wrote: > Most of the examples I see about using the lazy-seq fn. make use of cons to > build the list (or a seq). > > Can we not use lazy-seq with a conj? And why?
Not really. user=> (clojure-version) "1.3.0" user=> (do (cons 88 (map prn [4 6])) nil) nil user=> (do (conj (map prn [4 6]) 88) nil) 4 6 nil Conj forces its collection argument if it's a lazy seq. -- Stephen Compall ^aCollection allSatisfy: [:each|aCondition]: less is better -- 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