documented possible bad functions

This commit is contained in:
sebastianselander 2023-03-06 16:41:59 +01:00
parent eef6fa7668
commit fce54e7899
2 changed files with 17 additions and 22 deletions

View file

@ -1,17 +1,8 @@
-- double : _Int -> _Int ;
-- double n = n + n;
apply : ('a -> 'b -> 'c) -> 'a -> 'b -> 'c ;
apply f x y = f x y ;
id : 'a -> 'a ;
id x = x ;
add : _Int -> _Int -> _Int ;
add x y = x + y ;
main : _Int -> _Int -> _Int ;
main = apply (id add) ;
idadd : _Int -> _Int -> _Int ;
idadd = id add ;
main : ('a -> 'b -> 'c) ;
main = id ;