Mercurial > urweb
comparison tests/eargs.ur @ 244:71bafe66dbe1
Laconic -> Ur
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 31 Aug 2008 08:32:18 -0400 |
parents | tests/eargs.lac@cc193f680193 |
children |
comparison
equal
deleted
inserted
replaced
243:2b9dfaffb008 | 244:71bafe66dbe1 |
---|---|
1 val id1 = fn n : int => n | |
2 val id2 = fn n => id1 n | |
3 | |
4 val pair1 = fn (t1 ::: Type) (t2 ::: Type) (x1 : t1) (x2 : t2) => (x1, x2) | |
5 val pair2 = fn (t1 ::: Type) (t2 ::: Type) (x1 : t1) (x2 : t2) () => pair1 x1 x2 | |
6 | |
7 val id3 n = id2 n | |
8 val id4 n : int = id3 n | |
9 val id5 (n : int) = id4 n | |
10 val id6 (n : int) : int = id5 n | |
11 | |
12 val id1 (t ::: Type) (x : t) = x | |
13 val id2 (t ::: Type) (x : t) : t = id1 x |