Created
January 15, 2015 11:11
-
-
Save sugitach/b9865c96eb7efe03da3c to your computer and use it in GitHub Desktop.
This file contains 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
(* 13.5 *) | |
let twice f = let g x = f (f x) in g | |
let f = twice twice | |
(* できあがった関数は渡された関数を4回繰り返したものになる *) | |
(* val f : ('_a -> '_a) -> '_a -> '_a = <fun> *) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment