f sharp global variable

90

f sharp global variable -

let mutable t = 0

let first =
    t <- 1 + 1
    //other stuff

let second = 
    //can use t here and it will have a value of 2

Comments

Submit
0 Comments