blob: 7bcc93c72ccf376f19105321112a53cd8f28de96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import gleam/io
import gleam/int
pub fn main() {
let x = int.random(5)
io.debug(x)
let result = case x {
// Match specific values
0 -> "Zero"
1 -> "One"
// Match any other value
_ -> "Other"
}
io.debug(result)
}
|