summaryrefslogtreecommitdiff
path: root/tests/tuple.ur
blob: 555cfd0c509be7db6f0aef2833aff355db4731da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
val x = (1, 2.0, "Hi")

val x1 = x.1
val x2 = x.2
val x3 = x.3

val y : int * float * string = x

val bizarro_x = case x of (a, b, c) => (c, a, b)

val main : unit -> page = fn () => <html><body>
        {cdata bizarro_x.1}
</body></html>