Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. Generally, F# doesn't allow variable re-assignment. Rather it favors immutable named values via let bindings. So, the following is not possible:
  2.  
  3. let a = 3
  4. a = 4
  5.  
  6. Unless you explicitly mark a as mutable:
  7.  
  8. let mutable a = 3
  9. a <- 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement