Skip to content

Instantly share code, notes, and snippets.

@jobjo
Created July 21, 2011 13:15
Show Gist options
  • Select an option

  • Save jobjo/1097150 to your computer and use it in GitHub Desktop.

Select an option

Save jobjo/1097150 to your computer and use it in GitHub Desktop.
open M
Foo ()
module M
let X =
let x = ref 8
fun () ->
incr x
x.Value
let Foo () =
let x = X ()
printfn "%A" x
()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment