News for hackers. Stuff that matters.
Re:Clojure.core/lazy-seq makes sense by grogers on Monday June 07, 2010 @01:51PM (#1411181)
Some times in clojure I've found it easier to express a sequence recursively, rather than iteratively. Using lazy-seq is not only braindead simple for this - just wrap the whole function in it, it is the only way to keep your stack use from growing on the recursive calls. I haven't compared the performance of this to eager evaluation but I'd guess it isn't that poor.

There are no comments on this comment yet.