Hi,

Am 28.11.2010 um 21:33 schrieb Asim Jalis:

> This looks like map rather than foldr.
> 
> On Sun, Nov 28, 2010 at 7:40 AM, tpeng <pengt...@gmail.com> wrote:
>> i have a one:
>> (defn lazy-foldr [f coll]
>>    (lazy-seq
>>        (if-let [[x & xs] coll]
>>            (cons x (lazy-foldr f xs)))))
>> 
>> it seems works so far ;-p

This is just mapping the identity over the input seq. ;-p And it also gives a 
wrong result for an input coll like [].

Sincerely
Meikel


-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
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

Reply via email to