Mercurial > urweb
view tests/cfold.lac @ 96:82aaa1c406d3
Mono optimizations (start with string concat and space eating)
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 03 Jul 2008 18:06:52 -0400 |
parents | 6431b315a1e3 |
children |
line wrap: on
line source
con currier = fold (fn nm => fn t => fn acc => t -> acc) {} con greenCurryIngredients :: {Type} = [] con greenCurry = currier greenCurryIngredients val greenCurry : greenCurry = {} con redCurryIngredients = [A = int, B = string] con redCurry = currier redCurryIngredients val redCurry : redCurry = fn x : int => fn y : string => {} con yellowCurryIngredients = [A = string, B = int, C = float] con yellowCurry = currier yellowCurryIngredients val yellowCurry : yellowCurry = fn x => fn y => fn z => {} val main = yellowCurry