1
0
dust/examples/match.ds

13 lines
171 B
Plaintext
Raw Permalink Normal View History

2023-12-11 15:18:46 +00:00
foo_or_bar = match (random_boolean) {
true => "foo"
false => "bar"
}
num = match (random_integer) {
1 => "one",
2 => { "two" },
* => "neither",
}
[foo_or_bar, num]