Created
May 12, 2017 20:59
-
-
Save MrPickles/f246a9b313c8dea88fafeac5d5450050 to your computer and use it in GitHub Desktop.
Guess the type of the mysterious OCaml variable!
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
let mystery = | |
let pair x f = f x x in | |
let f1 x = pair x in | |
let f2 x = f1 (f1 x) in | |
let f3 x = f2 (f2 x) in | |
let f4 x = f3 (f3 x) in | |
let f5 x = f4 (f4 x) in | |
fun z -> (f5 (fun x -> x) z) | |
;; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment