Mercurial > urweb
view tests/cfold.ur @ 802:ef6de4075dc1
Fix a Core_untangle bug that missed closure variable references; XHTMLize
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 16 May 2009 12:41:33 -0400 |
parents | 71bafe66dbe1 |
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