Mercurial > urweb
view tests/bool.lac @ 195:85b5f663bb86
Tuples syntactic sugar
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 09 Aug 2008 12:50:49 -0400 |
parents | 88d46972de53 |
children |
line wrap: on
line source
val page = fn b => <html><body> {cdata (case b of False => "No!" | True => "Yes!")} </body></html> val main : unit -> page = fn () => <html><body> <li><a link={page True}>True</a></li> <li><a link={page False}>False</a></li> </body></html>