diff tests/letwhere.ur @ 2025:afeeabdcce77

let..where..end
author Adam Chlipala <adam@chlipala.net>
date Wed, 11 Jun 2014 14:22:47 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/letwhere.ur	Wed Jun 11 14:22:47 2014 -0400
@@ -0,0 +1,7 @@
+fun main () : transaction page =
+    let
+        return <xml>Hi {[alice]} and {[bob]}!</xml>
+    where
+        val alice = "Alice"
+        val bob = "Bob"
+    end