RosettaCodeData/Task/Variables/Gleam/variables.gleam

10 lines
211 B
Gleam
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
pub fn main() -> Nil {
let a = 50
// variables with the same name rebind to a new value.
// Variables are immutable in Gleam and 'a' above differs from the one below
let a = 10
let b = a + 42
Nil
}