blob: c8807601afd5be9effa246df593549b577e7ea7c (
plain)
1
2
3
4
5
6
7
8
9
10
|
module ReferenceCells
// Declare a reference.
let refVar = ref 6
// Change the value referred to by the reference.
refVar := 50
// Dereference by using the ! operator.
printfn "%d" !refVar
|