[plt-scheme] minor glitch in Lazy Scheme?

From: Eli Barzilay (eli at barzilay.org)
Date: Sat Jan 13 12:58:07 EST 2007

On Jan 13, jos koot wrote:
> My humble suggestion:
> Comparison of the fridges of two trees (see Section 9.4 of EOPL) You
> could demonstrate that (in this case and with a lazy evaluator) you
> can do this without coroutines. Also this is an example where
> lazyness helps even with finite structures.

I did that too -- I wrote the code that turn the fringes into lists,
explained what the problem was, then asked for a solution in Lazy
Scheme.  Very few got the idea that the same code is a proper solution
in this case.

But this could be done just the same using lazy streams.

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.