this
> is not possible to do this "transparently".
>
> Using delay/force could help, but this would not be "transparent" at all for
> the writer of the fn ;-)
>
> 2010/11/27 tpeng
>
> > thanks Alex for this nice foldr. ;-)
>
> > however this la
thanks Alex for this nice foldr. ;-)
however this lazy-foldr can only be used when the fn can stop by
itself (in this case, it's 'and' which is short-circuited) otherwise
lazy-foldr will never get stop.
i think for a good foldr, the evaluation of #(lazy-foldr f val xs)
should be only forced when
but this foldr can't handle the infinite list, am i right?
On Nov 8, 2:18 am, "nicolas.o...@gmail.com"
wrote:
> On Sun, Nov 7, 2010 at 3:28 PM, iko...@gmail.com wrote:
> > 2010/11/7 David Sletten
>
> >> Or for those of you who prefer that other people won't be able to read
> >> your code:
> >>