let (Keyword)

let binds an immutable value in Default syntax. Its type is inferred from the expression. ML and Python syntax omit let for ordinary bindings. Mutable cells use mut, with reassignment restricted to effect handlers; see bindings.

Example

let name = "Alice"
let age = 25
let isActive = true
name = "Alice"
age = 25
isActive = true