On Mon, Sep 6, 2010 at 10:09 AM, Justin Kramer <[email protected]> wrote:
> reduce returns a single value; there's no collection to make lazy.
> There is reductions, which returns the intermediate results of reduce
> as a lazy sequence.
>
if f = cons in 'reduce f a seq', there is a collection. Though in this
case, one should use foldr rather than foldl.

That lead to a question I have asked before, is there a lazy foldr in
clojure ? A related question, what about unfold ?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
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

Reply via email to