Mercurial > urweb
comparison tests/cfold.ur @ 244:71bafe66dbe1
Laconic -> Ur
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 31 Aug 2008 08:32:18 -0400 |
parents | tests/cfold.lac@6431b315a1e3 |
children |
comparison
equal
deleted
inserted
replaced
243:2b9dfaffb008 | 244:71bafe66dbe1 |
---|---|
1 con currier = fold (fn nm => fn t => fn acc => t -> acc) {} | |
2 | |
3 con greenCurryIngredients :: {Type} = [] | |
4 con greenCurry = currier greenCurryIngredients | |
5 val greenCurry : greenCurry = {} | |
6 | |
7 con redCurryIngredients = [A = int, B = string] | |
8 con redCurry = currier redCurryIngredients | |
9 val redCurry : redCurry = fn x : int => fn y : string => {} | |
10 | |
11 con yellowCurryIngredients = [A = string, B = int, C = float] | |
12 con yellowCurry = currier yellowCurryIngredients | |
13 val yellowCurry : yellowCurry = fn x => fn y => fn z => {} | |
14 | |
15 val main = yellowCurry |