Created
April 8, 2014 10:15
-
-
Save palladin/10106955 to your computer and use it in GitHub Desktop.
Mono Tail-call test
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
// mono --optimize=tailc | |
let fs = [1..1000000] |> List.map (fun i -> (fun k j -> k (i + j))) | |
let f = List.fold (fun f' f -> f f') id fs | |
f 1 // StackOverflow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment