view tests/recReal2.ur @ 883:467285bb5578

Avoid preparing the same statement twice
author Adam Chlipala <adamc@hcoop.net>
date Fri, 17 Jul 2009 13:19:41 -0400
parents 71bafe66dbe1
children
line wrap: on
line source
val rec endlessList1 = fn () => <body>
        <li> Buy eggs.</li>
        {endlessList2 ()}
</body>

and endlessList2 = fn () => <body>
        <li> Buy milk.</li>
        {endlessList1 ()}
</body>

val main = fn () => <html><body>
        {endlessList1 ()}
</body></html>