diff demo/listFun.ur @ 399:2d64457eedb1

listFun uses length
author Adam Chlipala <adamc@hcoop.net>
date Tue, 21 Oct 2008 13:41:03 -0400
parents ab3177746c78
children e756d3a47726
line wrap: on
line diff
--- a/demo/listFun.ur	Tue Oct 21 13:24:54 2008 -0400
+++ b/demo/listFun.ur	Tue Oct 21 13:41:03 2008 -0400
@@ -12,6 +12,8 @@
       
     fun console (ls : list M.t) = return <xml><body>
       Current list: {toXml ls}<br/>
+      Length: {[length ls]}<br/>
+      <br/>
 
       <form>
         Add element: <textbox{#X}/> <submit action={cons ls}/>