Skip to content

Instantly share code, notes, and snippets.

@palladin
Created April 8, 2014 10:15
Show Gist options
  • Save palladin/10106955 to your computer and use it in GitHub Desktop.
Save palladin/10106955 to your computer and use it in GitHub Desktop.
Mono Tail-call test
// 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