1
0
dust/examples/match.ds
2023-12-31 18:14:00 -05:00

13 lines
171 B
Plaintext

foo_or_bar = match random_boolean() {
true => "foo"
false => "bar"
}
num = match random_integer() {
1 => "one",
2 => { "two" },
* => "neither",
}
[foo_or_bar, num]