churf/sample-programs/basic-1
2023-02-16 10:03:25 +01:00

13 lines
272 B
Text

--tripplemagic : Int -> Int -> Int -> Int;
--tripplemagic x y z = ((\x:Int. x+x) x) + y + z;
-- main : Int;
-- main = tripplemagic ((\x:Int. x+x+3) ((\x:Int. x) 2)) 5 3
apply : (Int -> Int) -> Int -> Int;
apply f x = f x;
main : Int;
main = apply (\x:Int . x + 2) 5;