Re: Holding onto your head & step functions -- confusion

2009-11-23 Thread Garth Sheldon-Coulson
Scratch this question. I think I've figured out that the "step" function in some people's code is there for aesthetic reasons only. As long as the step function contains the same code as would otherwise go directly inside the (lazy-seq ... ) there's no difference. That is, (let [step (fn [a b] )

Holding onto your head & step functions -- confusion

2009-11-22 Thread Garth Sheldon-Coulson
Hi All, I'll confused about the hold-onto-your-head business when building lazy seqs using lazy-seq. The "lazier" documentation on the web site doesn't really clear things up for me, though I've read it a few times. Under what circumstances must one use a "step" function, and under what circumst