On Dec 4, 6:20 pm, Paul Mooser <[EMAIL PROTECTED]> wrote: > However, I'm running out of heap space using the following function to > filter my sequences: ... > I know that filter is lazy, and I see that the documentation of lazy- > cons says that lazy-conses are cached. Cached for what duration ? Does > this mean that filter is not appropriate for use on long sequences, or > is there something else likely to be going on here?
Hi Paul, I think a lazy cons is cached only as long as you hold a pointer to the head. Are you sure you don't have any pointers to doc-seq hanging around in another piece of code? Or, alternately, pointers to the filter output? -S --~--~---------~--~----~------------~-------~--~----~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---