1
0
dust/examples/match.ds

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]