Ignore:
Timestamp:
May 4, 2014, 8:06:39 PM (11 years ago)
Author:
gobi
Message:

lambda

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sizechecking/branches/macs/Tests/LambdaTest.hs

    r24 r26  
    99test1 :: (Lambda l) => l Int 
    1010test1 = app (lam $ \_ -> lit 3) (lit 2) 
     11 
     12const2 :: (Lambda l) => l ( Int -> Int ) 
     13const2 = lam $ \_ -> lit 2 
     14 
     15t3 :: (Lambda l) => l ( (a -> a) -> (a -> a) ) 
     16t3 = (lam $ \f -> lam $ \v -> f `app` (f `app` (f `app` v))) 
     17 
    1118 
    1219test1ast :: IO Bool 
Note: See TracChangeset for help on using the changeset viewer.