Mercurial > urweb
view tests/cfold.ur @ 2216:70ec9bb337be
Progress towards invalidation based on equalities of fields.
author | Ziv Scully <ziv@mit.edu> |
---|---|
date | Mon, 10 Nov 2014 22:04:40 -0500 |
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