aboutsummaryrefslogtreecommitdiff
path: root/src/content/chapter0_basics/lesson11_assignments/code.gleam
blob: a030e438b15b9d245e72f5eae217117be40cb34f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import gleam/io

pub fn main() {
  let x = "Original"
  io.debug(x)

  // Assign `y` to the value of `x`
  let y = x
  io.debug(y)

  // Assign `x` to a new value
  let x = "New"
  io.debug(x)

  // The `y` still refers to the original value
  io.debug(y)
}