Mercurial > urweb
comparison tests/cfold.lac @ 67:9f89f0b00b84
Elaborating cfold
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 26 Jun 2008 09:48:54 -0400 |
parents | |
children | 2e0f3b21fb85 |
comparison
equal
deleted
inserted
replaced
66:1ec5703c09c4 | 67:9f89f0b00b84 |
---|---|
1 con currier = fold (fn nm => fn t => fn acc => t -> acc) {} | |
2 | |
3 con greenCurry = currier [] | |
4 val greenCurry : greenCurry = {} | |
5 | |
6 con redCurry = currier [A = int, B = string] | |
7 val redCurry : redCurry = fn x : int => fn y : string => {} | |
8 | |
9 con yellowCurry = currier [A = string, B = int, C = float] | |
10 val yellowCurry : yellowCurry = fn x => fn y => fn z => {} |