On Thu, Apr 2, 2009 at 11:58 AM, fitzpatrick...@googlemail.com <fitzpatrick...@googlemail.com> wrote: > > Hi, > I am attempting to print a large lazy seq to file. I have attempted > various approaches and obviously am missing something obvious. > I have attempted do use do-seq and also iterated manually through the > sequence but i always come up with the heap error. > Has anyone got any suggestions?
Don't hold on to the head of the seq. It may not be obvious where, but you are most likely holding on the the head of the seq, which prevents the elements from being GC'd as you iterate them. > tks, > PJ > > > -- Venlig hilsen / Kind regards, Christian Vest Hansen. --~--~---------~--~----~------------~-------~--~----~ 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 clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---