Created
February 2, 2013 13:36
-
-
Save teamon/4697421 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- fun f g a b = g a b; | |
val f = fn : ('a -> 'b -> 'c) -> 'a -> 'b -> 'c | |
- fun plus a b = a + b; | |
val plus = fn : int -> int -> int | |
- fun mul a b = a * b; | |
val mul = fn : int -> int -> int | |
- f plus 2 3; | |
val it = 5 : int | |
- f mul 2 3; | |
val it = 6 : int |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment