comparison tests/tuple.lac @ 195:85b5f663bb86

Tuples syntactic sugar
author Adam Chlipala <adamc@hcoop.net>
date Sat, 09 Aug 2008 12:50:49 -0400
parents
children 2f574c07df2e
comparison
equal deleted inserted replaced
194:df5fd8f6913a 195:85b5f663bb86
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>