comparison tests/tuple.ur @ 244:71bafe66dbe1

Laconic -> Ur
author Adam Chlipala <adamc@hcoop.net>
date Sun, 31 Aug 2008 08:32:18 -0400
parents tests/tuple.lac@2f574c07df2e
children
comparison
equal deleted inserted replaced
243:2b9dfaffb008 244:71bafe66dbe1
1 val x = (1, 2.0, "Hi")
2
3 val x1 = x.1
4 val x2 = x.2
5 val x3 = x.3
6
7 val y : int * float * string = x
8
9 val bizarro_x = case x of (a, b, c) => (c, a, b)
10
11 val main : unit -> page = fn () => <html><body>
12 {cdata bizarro_x.1}
13 </body></html>