Conducting the answer to this question to make it easier for others to learn from this error.
let mutable n = 0 for i in 0..999 do if (i % 3 = 0) || (i % 5 = 0) then n <- i + n printfn "%A" n
The loan should go to JJJ for providing the original hint and Guy Coder, indicating that a more functional approach would be more idiomatic in F #.
source share