diff tests/lengthGe.ur @ 1624:f96e708b4b93

Client-side strlenGe
author Adam Chlipala <adam@chlipala.net>
date Sat, 03 Dec 2011 16:05:06 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/lengthGe.ur	Sat Dec 03 16:05:06 2011 -0500
@@ -0,0 +1,7 @@
+fun main () : transaction page =
+    s <- source "";
+    return <xml><body>
+      <ctextbox source={s}/>
+      <dyn signal={v <- signal s;
+                   return (txt (strlenGe v 3))}/>
+    </body></xml>