On Mar 21, 2013, at 1:54 PM, Razvan Rotaru <razvan.rot...@gmail.com> wrote:
> I'm curious, why doesn't toString of clojure.lang.LazySeq return the entire > sequence as a String, and returns the Java pointer instead? I don't know, but perhaps it's to avoid problems with infinite sequences? (Although it's interesting that `(range)` produces a lazy sequence and `(str (range))` runs out of heap.) > Is there an alternative to the code above (preferably simple and elegant), > which will return the etire sequence? I don't know if it's elegant, but: user=> (str (list* (map + [1 2 3]))) "(1 2 3)" -------- Looking for employment as a Clojure programmer Latest book: /Functional Programming for the Object-Oriented Programmer/ https://leanpub.com/fp-oo -- -- 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.