Switch
a := compute_some_number()
switch a {
| 0 => print("a is zero")
| 10 => print("a is ten")
| _ => print("something else")
}foo: str = switch 10 {
| 10 => "foo"
}Last updated
a := compute_some_number()
switch a {
| 0 => print("a is zero")
| 10 => print("a is ten")
| _ => print("something else")
}foo: str = switch 10 {
| 10 => "foo"
}Last updated