Skip to content

Instantly share code, notes, and snippets.

@alieniasty
Created April 10, 2019 10:02
Show Gist options
  • Save alieniasty/cbbb49e43133e4c0fc6c0dbbf9217866 to your computer and use it in GitHub Desktop.
Save alieniasty/cbbb49e43133e4c0fc6c0dbbf9217866 to your computer and use it in GitHub Desktop.
Generally, F# doesn't allow variable re-assignment. Rather it favors immutable named values via let bindings. So, the following is not possible:
let a = 3
a = 4
Unless you explicitly mark a as mutable:
let mutable a = 3
a <- 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment