Limiting *print-length* keeps the OutOfMemoryError away, but I guess it would leave me - when testing more complicated and obscure functions - insecure whether the returned sequence really is a lazy one or will blow up the memory instead. But good to know anyway ... I guess the println function is what I want to use for verifying the laziness of a function.
Are there any use cases where it makes sense to bind a lazy sequence to a var and not to a fn, other than knowing the returned sequence will always be small? (Something like: When you want to plug it into this or into that, then you better have it bound to a var ...) Or do I just not even think about it and always bind it to a fn? Ben -- 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