aboutsummaryrefslogtreecommitdiff
path: root/lessons/src/lesson022_case_expressions/code.gleam
blob: 33c029078e0dc020b4ab90cd08a68b925fdf118f (plain)
1
2
3
4
5
6
7
8
9
10
import gleam/io
import gleam/int

pub fn main() {
  let result = case int.random(0, 5) {
    0 -> "It's zero!"
    other -> "It's " <> int.to_string(other)
  }
  io.debug(result)
}