f sharp make parameter mutable

65

f sharp make parameter mutable -

let mutable v = 0
let mutate (r : byref<_>) = 
    r <- 100
mutate &v
printfn "%d" v

Comments

Submit
0 Comments